aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/src/memory/mmu.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-04-16 10:29:30 +0200
committerFelix Morgner <felix.morgner@ost.ch>2026-04-29 09:05:04 +0200
commit1b964278762dde86b0b737bd9a34fec569339f54 (patch)
tree7fe0f4707e05f46461f03744d178f413b7bbca28 /arch/x86_64/src/memory/mmu.cpp
parentd906d70c94c2a40d5fc6fd26056c7bc57d540002 (diff)
downloadteachos-1b964278762dde86b0b737bd9a34fec569339f54.tar.xz
teachos-1b964278762dde86b0b737bd9a34fec569339f54.zip
x86_64: use p1204 project layout
Diffstat (limited to 'arch/x86_64/src/memory/mmu.cpp')
-rw-r--r--arch/x86_64/src/memory/mmu.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/x86_64/src/memory/mmu.cpp b/arch/x86_64/src/memory/mmu.cpp
deleted file mode 100644
index 2b53fa4..0000000
--- a/arch/x86_64/src/memory/mmu.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <arch/memory/mmu.hpp>
-
-#include <arch/cpu/registers.hpp>
-
-#include <kapi/memory.hpp>
-
-namespace arch::memory
-{
- auto tlb_flush(kapi::memory::linear_address address) -> void
- {
- asm volatile("invlpg (%[input])" : /* no output from call */ : [input] "r"(address) : "memory");
- }
-
- auto tlb_flush_all() -> void
- {
- auto paging_root = cpu::cr3::read();
- cpu::cr3::write(paging_root);
- }
-} // namespace arch::memory