summaryrefslogtreecommitdiff
path: root/sys/vm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_init.c10
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();
+}