From 5ffe7d69545bf098efdd70f105a5df83304b211a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Sat, 2 Nov 2024 11:49:38 +0000 Subject: Add physical frame iterator and continue implementing kernel mapping. --- arch/x86_64/src/kernel/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/x86_64/src/kernel') 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(); -- cgit v1.2.3