MemoryManager: Initialize KernelVM at the end of init()

KernelVM is not needed for MMU's init process anymore.
This commit is contained in:
apio 2023-02-27 13:24:58 +01:00
parent a0252e42a4
commit 3654cc5bee
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -100,7 +100,7 @@ namespace MemoryManager
void init() void init()
{ {
init_physical_frame_allocator(); init_physical_frame_allocator();
KernelVM::init();
MMU::setup_initial_page_directory(); MMU::setup_initial_page_directory();
auto frame_bitmap = g_frame_bitmap.lock(); auto frame_bitmap = g_frame_bitmap.lock();
@ -108,6 +108,8 @@ namespace MemoryManager
auto virtual_bitmap_base = MMU::translate_physical_address(phys); auto virtual_bitmap_base = MMU::translate_physical_address(phys);
frame_bitmap->initialize((void*)virtual_bitmap_base, frame_bitmap->size_in_bytes()); frame_bitmap->initialize((void*)virtual_bitmap_base, frame_bitmap->size_in_bytes());
KernelVM::init();
} }
void do_lock_frame(u64 index, Bitmap& bitmap) void do_lock_frame(u64 index, Bitmap& bitmap)