summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/hal/obj.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/hal/obj.h')
-rw-r--r--arch/x86_64/hal/obj.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/x86_64/hal/obj.h b/arch/x86_64/hal/obj.h
index 78d7383..fcb7506 100644
--- a/arch/x86_64/hal/obj.h
+++ b/arch/x86_64/hal/obj.h
@@ -7,7 +7,7 @@
enum
{
- JOVE_OBJ_SERIAL_COM = 0x80,
+ JOVE_OBJ_SERIAL_COM = 0x40,
};
/*Represents a locked kernel object pointer inside of a object directory.*/
@@ -25,14 +25,9 @@ typedef union jove_obj
/*Represents an unlocked kernel object pointer.
*This object should only exist temporarily while accessing the underlying
*structure this object points to.*/
-typedef union jove_obj_locked
+typedef struct jove_locked_obj
{
- struct {
- uint8_t type;
- uint8_t lock;
- uint64_t value : 48;
- };
- uintmax_t data;
+ jove_obj_t locked;
} jove_owned_obj_t;
/*Object directories are always 1 page wide. Since an object inside the directory