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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86_64/src/memory/paging/page_table.cpp b/arch/x86_64/src/memory/paging/page_table.cpp
index 808fbbc..059ada2 100644
--- a/arch/x86_64/src/memory/paging/page_table.cpp
+++ b/arch/x86_64/src/memory/paging/page_table.cpp
@@ -3,6 +3,8 @@
#include <array>
#include <memory>
+extern char _end_of_image;
+
namespace teachos::arch::memory::paging
{
/**
@@ -107,7 +109,7 @@ namespace teachos::arch::memory::paging
{
exception_handling::assert(handle_level == page_table_handle::LEVEL4,
"[Page Table] Attempted to initialize a page table of level 3 or lower");
- // std::construct_at(reinterpret_cast<page_table *>(_end_of_image));
+ auto level3_page_table = std::construct_at(reinterpret_cast<page_table *>(_end_of_image));
}
auto page_table_handle::zero_entries() -> void { handle->zero_entries(); }