aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/mmu.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-10-29 11:09:42 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-10-29 11:09:42 +0100
commit6434de8ff75a9143847ef529bc209790ac4909b3 (patch)
treea66902303f99f10897cb04e294c55fabf814c49f /arch/x86_64/src/memory/mmu.cpp
parentacabbacdee68ad80e829bda56ae5363d04646d2d (diff)
downloadteachos-6434de8ff75a9143847ef529bc209790ac4909b3.tar.xz
teachos-6434de8ff75a9143847ef529bc209790ac4909b3.zip
kapi: move frame and address to KAPI
Diffstat (limited to 'arch/x86_64/src/memory/mmu.cpp')
-rw-r--r--arch/x86_64/src/memory/mmu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86_64/src/memory/mmu.cpp b/arch/x86_64/src/memory/mmu.cpp
index 31783fe..e573b4e 100644
--- a/arch/x86_64/src/memory/mmu.cpp
+++ b/arch/x86_64/src/memory/mmu.cpp
@@ -2,8 +2,10 @@
#include "x86_64/cpu/registers.hpp"
-namespace teachos::x86_64::memory
+namespace teachos::memory::x86_64
{
+ namespace cpu = cpu::x86_64;
+
auto tlb_flush(linear_address address) -> void
{
asm volatile("invlpg (%[input])" : /* no output from call */ : [input] "r"(address) : "memory");
@@ -14,4 +16,4 @@ namespace teachos::x86_64::memory
auto current_value = cpu::read_control_register(cpu::control_register::cr3);
cpu::write_control_register(cpu::control_register::cr3, current_value);
}
-} // namespace teachos::x86_64::memory
+} // namespace teachos::memory::x86_64