]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - include/c++/orb.h
update
[polintos/scott/priv.git] / include / c++ / orb.h
index 31348f2227a3f6680ac31e8ce281c464468ea32b..1078555f625a9d33727365f138a8ac3db636cf9f 100644 (file)
@@ -279,21 +279,28 @@ namespace System {
                struct ParamInfoBlock {
                        uintptr_t buffer_size;
                        uintptr_t copy_size;
-                       uintptr_t *objlist_ptr;
+                       uintptr_t *objlist;
                        uintptr_t objlist_len;
                        uintptr_t num_segments;
 
                        struct Segment {
-                               void *ptr;
+                               unsigned char *ptr;
                                uintptr_t len;
                                uintptr_t flags;
                                uintptr_t reserved;
+                               
+                               enum {
+                                       In = 1,
+                                       Out = 2,
+                                       Inline = 4,
+                                       Copy = 8
+                               };
                        } segments[0];
                };
        }
        
        namespace Priv {
-               bool in_kernel()
+               static inline bool in_kernel()
                {
 #ifdef _KERNEL
                        return true;