diff options
Diffstat (limited to 'sys/include/vm/vm.h')
-rw-r--r-- | sys/include/vm/vm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/include/vm/vm.h b/sys/include/vm/vm.h index 78038f0..baf7677 100644 --- a/sys/include/vm/vm.h +++ b/sys/include/vm/vm.h @@ -32,6 +32,8 @@ #include <sys/types.h> #include <sys/limine.h> +#include <sys/cdefs.h> +#include <vm/vm_page.h> extern volatile struct limine_hhdm_request g_hhdm_request; @@ -40,6 +42,19 @@ 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) +/* + * Returns the machine's pagesize: + * + * XXX TODO: This needs to be moved to vmm_init.c + * while returning a non-constant value. + */ +static inline size_t +vm_get_page_size(void) +{ + return 4096; +} + void vm_init(void); +struct vas vm_new_vas(void); #endif /* !_VM_H_ */ |