aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8c53c4c..0a45a51 100644
--- a/arch/x86_64/src/kapi/memory.cpp
+++ b/arch/x86_64/src/kapi/memory.cpp
@@ -183,7 +183,7 @@ namespace teachos::memory
cio::println("[x86_64:MEM] Switching to new paging hierarchy.");
auto cr3 = cpu::x86_64::cr3::read();
- cr3.address(new_pml4_frame.start_address());
+ cr3.frame(new_pml4_frame);
cpu::x86_64::cr3::write(cr3);
set_frame_allocator(*buffered_allocator);