aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/paging
diff options
context:
space:
mode:
authorFabian Imhof <fabian.imhof@ost.ch>2024-10-26 10:09:46 +0000
committerFabian Imhof <fabian.imhof@ost.ch>2024-10-26 10:09:46 +0000
commit47ec911e3b3624d875da5b9cc0102e3d17a6d54a (patch)
tree0de41b8dc4fc46204fe8c3457533df48ba9f2f95 /arch/x86_64/src/memory/paging
parent86dcd6d56a5a1d59f52eddd94fccbe0d0c41d743 (diff)
downloadteachos-47ec911e3b3624d875da5b9cc0102e3d17a6d54a.tar.xz
teachos-47ec911e3b3624d875da5b9cc0102e3d17a6d54a.zip
use linker variable
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(); }