From a0bb2191d900631acd33276a028397b0a9b3fb5d Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 23 May 2024 19:36:54 -0400 Subject: kernel/amd64: pmap: Add pmap_init() Signed-off-by: Ian Moffett --- sys/vm/vm_init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/vm') diff --git a/sys/vm/vm_init.c b/sys/vm/vm_init.c index 6096059..3087e6e 100644 --- a/sys/vm/vm_init.c +++ b/sys/vm/vm_init.c @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -74,6 +75,9 @@ vm_init(void) void *pool_va; kernel_vas = pmap_read_vas(); + if (pmap_init(vm_get_ctx()) != 0) { + panic("Failed to init pmap layer\n"); + } /* Setup virtual memory context */ bsp_vm_ctx.dynalloc_pool_sz = DYNALLOC_POOL_SZ; -- cgit v1.2.3