aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kernel/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kernel/main.cpp')
-rw-r--r--arch/x86_64/src/kernel/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp
index c89ae44..59e453a 100644
--- a/arch/x86_64/src/kernel/main.cpp
+++ b/arch/x86_64/src/kernel/main.cpp
@@ -3,6 +3,7 @@
#include "arch/exception_handling/assert.hpp"
#include "arch/memory/allocator/area_frame_allocator.hpp"
#include "arch/memory/multiboot/reader.hpp"
+#include "arch/memory/paging/kernel_mapper.hpp"
#include "arch/memory/paging/temporary_page.hpp"
#include "arch/video/vga/text.hpp"
@@ -27,6 +28,9 @@ namespace teachos::arch::kernel
memory::paging::temporary_page temp_page{page, allocator};
temp_page.zero_entries(active_table);
+ memory::paging::kernel_mapper kernel(allocator, memory_information);
+ kernel.remap_kernel();
+
// memory::paging::map_next_free_page_to_frame(allocator, page, 0U);
// auto optional_frame = memory::paging::translate_page(page);
// video::vga::text::newline();