From 969fd0635cb0fabeb0d66bcc2eab96be8e0d4c38 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 14 Sep 2025 17:39:58 -0400 Subject: kern: vm: Add virtual/physical address types Signed-off-by: Ian Moffett --- src/sys/include/vm/vm.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sys/include/vm/vm.h') 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_ */ -- cgit v1.2.3