From bb7887a29d850909caf861f82180abc1fb86c653 Mon Sep 17 00:00:00 2001 From: apio Date: Thu, 13 Oct 2022 19:19:51 +0200 Subject: [PATCH] Add basic address space infrastructure --- kernel/src/memory/VMM.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/src/memory/VMM.cpp b/kernel/src/memory/VMM.cpp index f8087a2e..374086fd 100644 --- a/kernel/src/memory/VMM.cpp +++ b/kernel/src/memory/VMM.cpp @@ -58,6 +58,7 @@ bool VMM::is_using_kernel_address_space() void VMM::init() { kernel_pml4 = (PageTable*)read_cr3(); + current_pml4 = kernel_pml4; } void VMM::unmap(uint64_t vaddr)