summaryrefslogtreecommitdiff
path: root/sys/inc/vm
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-11-16 12:04:27 -0500
committerIan Moffett <ian@osmora.org>2025-11-16 12:04:27 -0500
commit168e59a94d8665ccd005b1b2f8476828de4ce30b (patch)
treeda5629ba3316740eddad5d6e372bbdac3cd1abfe /sys/inc/vm
parentffd8072d07fff825fa7114715397ab5235c54b05 (diff)
kern: vm: Add pagesize define
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/inc/vm')
-rw-r--r--sys/inc/vm/vm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/inc/vm/vm.h b/sys/inc/vm/vm.h
index 7bf24f1..e1866cb 100644
--- a/sys/inc/vm/vm.h
+++ b/sys/inc/vm/vm.h
@@ -36,6 +36,7 @@
extern volatile struct limine_hhdm_request hhdm_req;
+#define PAGESIZE 0x1000
#define PHYS_TO_VIRT(PHYS) PTR_OFFSET(PHYS, hhdm_req.response->offset)
#define VIRT_TO_PHYS(VIRT) (uintptr_t)PTR_NOFFET(VIRT, hhdm_req.response->offset)