aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64
diff options
context:
space:
mode:
authorMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-13 12:37:08 +0000
committerMatteo Gmür <matteo.gmuer1@ost.ch>2024-11-13 12:37:08 +0000
commitd32130f8a81247e450490d31074ec6501dd4aeb1 (patch)
treee92b1065fb5e6a10187855c3f6fe5f02934fc09a /arch/x86_64
parent266c01528fdc994e4e326de37f99d67f9a0eb3a6 (diff)
downloadteachos-d32130f8a81247e450490d31074ec6501dd4aeb1.tar.xz
teachos-d32130f8a81247e450490d31074ec6501dd4aeb1.zip
Note that mapping seems to be working
Diffstat (limited to 'arch/x86_64')
-rw-r--r--arch/x86_64/src/kernel/main.cpp18
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