diff options
| author | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-13 15:46:16 +0000 |
|---|---|---|
| committer | Fabian Imhof <fabian.imhof@ost.ch> | 2025-03-13 15:46:16 +0000 |
| commit | 11db9338dac611ea32e202add5ce5055b54ebb58 (patch) | |
| tree | fa68d328a1fe5e07e52e32aac866a0bcc57094ab /arch/x86_64/src/kernel/cpu/tlb.cpp | |
| parent | bdbe6d4bc0f2966541bcd5a47c1a4ad9cbff16fa (diff) | |
| download | teachos-11db9338dac611ea32e202add5ce5055b54ebb58.tar.xz teachos-11db9338dac611ea32e202add5ce5055b54ebb58.zip | |
fixup typing and continue adding gdt
Diffstat (limited to 'arch/x86_64/src/kernel/cpu/tlb.cpp')
| -rw-r--r-- | arch/x86_64/src/kernel/cpu/tlb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86_64/src/kernel/cpu/tlb.cpp b/arch/x86_64/src/kernel/cpu/tlb.cpp index e753c2c..a09001c 100644 --- a/arch/x86_64/src/kernel/cpu/tlb.cpp +++ b/arch/x86_64/src/kernel/cpu/tlb.cpp @@ -2,9 +2,9 @@ #include "arch/kernel/cpu/control_register.hpp" -namespace teachos::arch::memory::cpu +namespace teachos::arch::kernel::cpu { - auto tlb_flush(paging::virtual_address address) -> void + auto tlb_flush(memory::paging::virtual_address address) -> void { asm volatile("invlpg (%[input])" : /* no output from call */ : [input] "r"(address) : "memory"); } @@ -13,4 +13,4 @@ namespace teachos::arch::memory::cpu { write_control_register(cpu::control_register::CR3, read_control_register(cpu::control_register::CR3)); } -} // namespace teachos::arch::memory::cpu +} // namespace teachos::arch::kernel::cpu |
