summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-09-14 17:39:58 -0400
committerIan Moffett <ian@osmora.org>2025-09-14 17:39:58 -0400
commit969fd0635cb0fabeb0d66bcc2eab96be8e0d4c38 (patch)
treea293a0a5047e70313a76aa686374957060ee2ec8
parent264c986155287ce68e5afdf3bd8ff7ba7c1814cc (diff)
kern: vm: Add virtual/physical address types
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--src/sys/include/vm/vm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys/include/vm/vm.h b/src/sys/include/vm/vm.h
index 476ff27..790fe0b 100644
--- a/src/sys/include/vm/vm.h
+++ b/src/sys/include/vm/vm.h
@@ -38,6 +38,10 @@
#define VIRT_TO_PHYS(VIRT) ((uintptr_t)(VIRT) - VM_HIGHER_HALF)
#define DEFAULT_PAGESIZE 4096
+/* Physical/virtual address */
+typedef uintptr_t vaddr_t;
+typedef uintptr_t paddr_t;
+
void vm_init(void);
#endif /* !_VM_H_ */