diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-11 11:16:36 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-11 11:16:36 -0400 |
| commit | bb08472a04127c994d3ea5a2cbc195f7116a03b8 (patch) | |
| tree | c55910449fae5cc2a722c4b6619f4c8dde8d5b56 /arch/x86_64/hal/obj.h | |
| parent | 880dc3ee72809e74a5bde2275fc8f419a762b255 (diff) | |
| download | jove-kernel-bb08472a04127c994d3ea5a2cbc195f7116a03b8.tar.gz jove-kernel-bb08472a04127c994d3ea5a2cbc195f7116a03b8.tar.bz2 jove-kernel-bb08472a04127c994d3ea5a2cbc195f7116a03b8.zip | |
preliminary object linking support. needs testing
Diffstat (limited to 'arch/x86_64/hal/obj.h')
| -rw-r--r-- | arch/x86_64/hal/obj.h | 11 |
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 |
