summaryrefslogtreecommitdiff
path: root/sys/include/vm/vm.h
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-03-17 23:45:19 -0400
committerIan Moffett <ian@osmora.org>2024-03-17 23:45:19 -0400
commit3be9e31b6fd78b4a63b13f8a1562be78050774a0 (patch)
tree65c1b519068ccaaf486456c5c4c8a50121ccf0c8 /sys/include/vm/vm.h
parent0776264c266e7c1619b8b8b84d2da5384979bb3c (diff)
kernel: vm: Add vm_range structure
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/vm/vm.h')
-rw-r--r--sys/include/vm/vm.h5
1 files changed, 5 insertions, 0 deletions
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:
*