]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - kernel/orb/invoke.cc
xfer to laptop
[polintos/scott/priv.git] / kernel / orb / invoke.cc
index 57097c55e0bc15a2500e3887eada0c677c8b533a..27a1ebe1612a2a1a1ffc7e2fec0f8888c38ff5b7 100644 (file)
 #include <kern/orb.h>
 #include <kern/pagealloc.h>
 #include <kern/compiler.h>
+#include <kern/thread.h>
+
 #include <arch/usercopy.h>
+
 #include <orb.h>
 
 using System::RunTime::ParamInfoBlock;
@@ -44,17 +47,14 @@ namespace ORB {
                return &hdr->frames[++thread->orbstack_top];
        }
        
-       u32 IDSpace::rlookup(Object *obj)
+       ObjectHdr *IDSpace::get_local_hdr(Object *obj)
        {
-#if 0
-               ObjectHdr *hdr = idtree.find(obj);
+               ObjectHdr *hdr = idrmap.lookup(obj->id);
                
                if (!hdr)
                        return 0;
                
                return hdr->id;
-#endif
-               return 0;
        }
 }