From ac11bed4498cccc1f48d3bf58ab4a9a311cbb998 Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Wed, 11 Oct 2023 16:43:32 -0400 Subject: kernel: vm: Create vm_init() Signed-off-by: sigsegv7 --- sys/vm/vm_init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sys/vm/vm_init.c') diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c index ab6103f..0930b54 100644 --- a/sys/vm/vm_init.c +++ b/sys/vm/vm_init.c @@ -28,8 +28,18 @@ */ #include +#include +#include + +static volatile struct vas kernel_vas; volatile struct limine_hhdm_request g_hhdm_request = { .id = LIMINE_HHDM_REQUEST, .revision = 0 }; + +void +vm_init(void) +{ + kernel_vas = pmap_read_vas(); +} -- cgit v1.2.3