diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-13 12:37:08 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-13 12:37:08 +0000 |
| commit | d32130f8a81247e450490d31074ec6501dd4aeb1 (patch) | |
| tree | e92b1065fb5e6a10187855c3f6fe5f02934fc09a | |
| parent | 266c01528fdc994e4e326de37f99d67f9a0eb3a6 (diff) | |
| download | teachos-d32130f8a81247e450490d31074ec6501dd4aeb1.tar.xz teachos-d32130f8a81247e450490d31074ec6501dd4aeb1.zip | |
Note that mapping seems to be working
| -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 |
