aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/paging
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/memory/paging')
-rw-r--r--arch/x86_64/src/memory/paging/page_table.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp
index 93cc0de..868cf86 100644
--- a/arch/x86_64/src/memory/paging/page_table.cpp
+++ b/arch/x86_64/src/memory/paging/page_table.cpp
@@ -109,6 +109,8 @@ namespace teachos::arch::memory::paging
auto page_table_handle::initialize_page_tables() -> void
{
+ // TODO: This should be done differently and only once the other methods are working see Rempaing the Kernel
+ /*
exception_handling::assert(handle_level == page_table_handle::LEVEL4,
"[Page Table] Attempted to initialize a page table of level 3 or lower");
auto level3_page_table = std::construct_at(reinterpret_cast<page_table *>(&_end_of_image));
@@ -124,6 +126,7 @@ namespace teachos::arch::memory::paging
}
size_t const flags = reinterpret_cast<size_t>(level3_page_table);
this->operator[](0U) = entry{flags};
+ */
}
auto page_table_handle::zero_entries() -> void { handle->zero_entries(); }