diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-26 17:11:50 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-26 17:11:50 -0400 |
| commit | 5f813d49a08cf3c3f8cf6c422cfb6587df575f62 (patch) | |
| tree | bd8872ee24580614b3eb845e1de26d465b025a09 /api/obj.h | |
| parent | b6765812f7da9feccc271e8e0b06f166e8054386 (diff) | |
| download | jove-kernel-5f813d49a08cf3c3f8cf6c422cfb6587df575f62.tar.gz jove-kernel-5f813d49a08cf3c3f8cf6c422cfb6587df575f62.tar.bz2 jove-kernel-5f813d49a08cf3c3f8cf6c422cfb6587df575f62.zip | |
add docs for syscalls. make syscall code kind-of cleaner
Diffstat (limited to 'api/obj.h')
| -rw-r--r-- | api/obj.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -10,9 +10,9 @@ enum JOVE_OBJ_OBJDIR, JOVE_OBJ_PAGEDIR, JOVE_OBJ_PROCESSOR, - JOVE_OBJ_HWMEMORY, + JOVE_OBJ_SHMEMORY, JOVE_OBJ_INT_HANDLE, - JOVE_OBJ_PROCESS, + JOVE_OBJ_PCB, JOVE_OBJ_INITRD_FILE, JOVE_OBJ_FRAMEBUFFER, JOVE_OBJ_VIRTTERM, @@ -20,6 +20,16 @@ enum JOVE_OBJ_LINK, }; + +/*Link can read object states and map page frames as read only*/ +#define JOVE_PERM_READ 1 +/*Link can write object states and map page frames as writeable*/ +#define JOVE_PERM_WRITE 2 +/*Link can untype linked objects, split untyped memory, and retype untyped linked object.*/ +#define JOVE_PERM_MUTATE 4 + +#define JOVE_PERM_ALL 7 + #define OBJDIR_NUM_ENTRIES (0x1000 / sizeof(uintmax_t)) typedef uint16_t objpath_part_t; |
