summaryrefslogtreecommitdiffstats
path: root/arch/x86_64/hal/paging.h
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-09-04 19:18:23 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-09-04 19:18:23 -0400
commit1768abb217f974cf96448ee847453b604800c546 (patch)
tree2dccae458433118e02d25d82a66052a747c59c51 /arch/x86_64/hal/paging.h
parent8251da342161767fe203627223ccd4a7026701c6 (diff)
downloadjove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.gz
jove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.bz2
jove-kernel-1768abb217f974cf96448ee847453b604800c546.zip
add generic initrd seek function. begin work on init loading
Diffstat (limited to 'arch/x86_64/hal/paging.h')
-rw-r--r--arch/x86_64/hal/paging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/hal/paging.h b/arch/x86_64/hal/paging.h
index 54df1eb..eb916a3 100644
--- a/arch/x86_64/hal/paging.h
+++ b/arch/x86_64/hal/paging.h
@@ -44,7 +44,7 @@ extern void *_kernel_physptr;
#define IDENT_VIRT_BASE 0xFFFF800000000000ULL
#define KERNEL_VIRT_BASE 0xFFFFFFFF80000000ULL
-#define KPTR_TOPHYS(v) (v - KERNEL_VIRT_BASE + (uintptr_t)_kernel_physptr)
+#define KPTR_TOPHYS(v) ((uintptr_t)v - KERNEL_VIRT_BASE + (uintptr_t)_kernel_physptr)
uintptr_t paging_get_pml4(void);
void paging_pml4_init(void);