diff options
author | sigsegv7 <ian@vegaa.systems> | 2023-10-11 16:43:32 -0400 |
---|---|---|
committer | sigsegv7 <ian@vegaa.systems> | 2023-10-11 16:43:32 -0400 |
commit | ac11bed4498cccc1f48d3bf58ab4a9a311cbb998 (patch) | |
tree | ff9db51898ba442d21a52338a2024f78ffa6d4bd /sys/vm | |
parent | 1c4c7f88056f50987a5a4d40016d6e32dc5a0205 (diff) |
kernel: vm: Create vm_init()
Signed-off-by: sigsegv7 <ian@vegaa.systems>
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_init.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <vm/vm.h> +#include <vm/pmap.h> +#include <sys/panic.h> + +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(); +} |