From 5f813d49a08cf3c3f8cf6c422cfb6587df575f62 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sat, 26 Sep 2026 17:11:50 -0400 Subject: add docs for syscalls. make syscall code kind-of cleaner --- arch/x86_64/hal/paging.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'arch/x86_64/hal/paging.h') diff --git a/arch/x86_64/hal/paging.h b/arch/x86_64/hal/paging.h index 5b7260c..becf353 100644 --- a/arch/x86_64/hal/paging.h +++ b/arch/x86_64/hal/paging.h @@ -17,7 +17,8 @@ typedef union page_table_entry uint8_t d : 1; uint8_t ps : 1; uint8_t g : 1; - uint8_t ign_0 : 2; + uint8_t shm : 1; + uint8_t ign_0 : 1; uint8_t r : 1; uint64_t paddr : 35; uint8_t ign_1 : 4; @@ -35,8 +36,9 @@ typedef union page_table_entry #define PAGE_ACCESSED 0b100000 #define PAGE_DIRTY 0b1000000 #define PAGE_PS 0b10000000 -#define PAGE_GLOBAL 0b000000000 -#define PAGE_XD (0ULL << 63) +#define PAGE_GLOBAL 0b100000000 +#define PAGE_SHMEM 0b1000000000 +#define PAGE_XD (1ULL << 63) extern void *_kernel_physptr; -- cgit v1.2.3