From d32130f8a81247e450490d31074ec6501dd4aeb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matteo=20Gm=C3=BCr?= Date: Wed, 13 Nov 2024 12:37:08 +0000 Subject: Note that mapping seems to be working --- arch/x86_64/src/kernel/main.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/arch/x86_64/src/kernel/main.cpp b/arch/x86_64/src/kernel/main.cpp index 60fa145..6c0faf4 100644 --- a/arch/x86_64/src/kernel/main.cpp +++ b/arch/x86_64/src/kernel/main.cpp @@ -27,19 +27,15 @@ namespace teachos::arch::kernel memory::paging::kernel_mapper kernel(allocator, memory_information); auto & active_table = kernel.remap_kernel(); auto x = active_table.active_handle.next_table(0); - if (x.has_value()) + auto y = x.value().next_table(0); + auto z = y.value().next_table(0); + if (z.has_value()) { - auto y = x.value().next_table(0); - - if (y.has_value()) - { - auto z = y.value().next_table(0); - if (z.has_value()) - { - } - } + video::vga::text::write("Kernel remapping successfull", video::vga::text::common_attributes::green_on_black); } - video::vga::text::write("Kernel remapping successfull", video::vga::text::common_attributes::green_on_black); + + // TODO: Seems to work correctly, Level 4 Index 0, Level 3 Index 0, Level 2 Index 0, Level 1 Index 184 = 753667 from + // mapping vga is still mapped // TODO: Map heap virtual pages with active table -- cgit v1.2.3