diff options
| -rw-r--r-- | arch/x86_64/src/kernel/main.cpp | 18 |
1 files 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 |
