aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/kapi/memory.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:56:12 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-02 18:56:12 +0100
commit588fe1a3600475bdc312a4fe758d2f1125eb149c (patch)
tree3fb0655d67894b0a4ed7a7f87ab01d3c523978ca /arch/x86_64/src/kapi/memory.cpp
parent331c070547634a2096c5e2165559fb0f11ee6330 (diff)
downloadteachos-588fe1a3600475bdc312a4fe758d2f1125eb149c.tar.xz
teachos-588fe1a3600475bdc312a4fe758d2f1125eb149c.zip
x86_64: basic code cleanup
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
{