aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/src/kapi/memory.cpp')
-rw-r--r--arch/x86_64/src/kapi/memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/src/kapi/memory.cpp b/arch/x86_64/src/kapi/memory.cpp
index 1a8b36f..e138641 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -26,7 +26,7 @@ namespace teachos::memory
auto constinit allocator = static_cast<frame_allocator *>(nullptr);
constexpr auto static unused_page_address = linear_address{0x0000'7fff'cafe'faceuz};
- constexpr auto static recursive_page_map_index = 510;
+ constexpr auto static recursive_page_map_index = x86_64::page_table::entry_count - 2;
auto create_memory_information() -> x86_64::region_allocator::memory_information
{