From 3be9e31b6fd78b4a63b13f8a1562be78050774a0 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 17 Mar 2024 23:45:19 -0400 Subject: kernel: vm: Add vm_range structure Signed-off-by: Ian Moffett --- sys/include/vm/vm.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys') diff --git a/sys/include/vm/vm.h b/sys/include/vm/vm.h index 48e1b8f..975eff0 100644 --- a/sys/include/vm/vm.h +++ b/sys/include/vm/vm.h @@ -47,6 +47,11 @@ extern volatile struct limine_hhdm_request g_hhdm_request; #define PHYS_TO_VIRT(phys) (void *)((uintptr_t)phys + VM_HIGHER_HALF) #define VIRT_TO_PHYS(virt) ((uintptr_t)virt - VM_HIGHER_HALF) +struct vm_range { + uintptr_t start; + uintptr_t end; +}; + /* * Returns the machine's pagesize: * -- cgit v1.2.3