]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
kernel/orb: comment out some in-progress code
authorScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:16:13 +0000 (23:16 -0600)
committerScott Wood <scott@buserror.net>
Fri, 9 Mar 2012 05:18:06 +0000 (23:18 -0600)
Signed-off-by: Scott Wood <scott@buserror.net>
kernel/orb/invoke.cc

index abfe23792d231e5ed1f49693bee8c47aba4ed502..888cff13cf5f6c0dc8a9d0da95cb77594c2493b3 100644 (file)
@@ -55,6 +55,7 @@ namespace ORB {
        
        Object *IDSpace::lookup(ID id)
        {
+#if 0
                // FIXME: refcounting
                ObjTableEntry *ote = table.lookup(id);
                if (!ote || ote->hdr.id == invalid_id)
@@ -64,6 +65,8 @@ namespace ORB {
                        return ote->ptr.object;
 
                return &ote->obj;
+#endif
+               return NULL;
        }
 
        ObjectHdr *IDSpace::get_local(Object *obj)
@@ -75,7 +78,8 @@ namespace ORB {
                ObjectPtr *ptr = *rmap.find(obj);
                if (ptr)
                        return ptr;
-               
+
+#if 0          
                int id = alloc.alloc();
                ptr = &table.lookup(id, true)->ptr;
 
@@ -86,11 +90,14 @@ namespace ORB {
                ptr->object = obj;
 
                rmap.add(obj, ptr);
+#endif
                return ptr;
+
        }
 
        Object *IDSpace::newobj(Mem::ProcAddrSpace *aspace)
        {
+#if 0
                Lock::AutoSpinLock autolock(lock);
                int id = alloc.alloc();
                Object *obj = &table.lookup(id, true)->obj;
@@ -101,6 +108,8 @@ namespace ORB {
                obj->aspace = aspace;
                
                return obj;
+#endif
+               return NULL;
        }
        
        static void copy_data(u8 *dest, u8 *vaddr, size_t bufsize,