diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 10:09:46 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2024-10-26 10:09:46 +0000 |
| commit | 47ec911e3b3624d875da5b9cc0102e3d17a6d54a (patch) | |
| tree | 0de41b8dc4fc46204fe8c3457533df48ba9f2f95 /arch | |
| parent | 86dcd6d56a5a1d59f52eddd94fccbe0d0c41d743 (diff) | |
| download | teachos-47ec911e3b3624d875da5b9cc0102e3d17a6d54a.tar.xz teachos-47ec911e3b3624d875da5b9cc0102e3d17a6d54a.zip | |
use linker variable
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86_64/src/memory/paging/page_table.cpp | 4 |
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(); } |
