diff options
| author | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-05 09:58:05 +0000 |
|---|---|---|
| committer | Matteo Gmür <matteo.gmuer1@ost.ch> | 2024-11-05 09:58:05 +0000 |
| commit | dc80a11864444cae275e9e7be9ae120a92433034 (patch) | |
| tree | 1aa387f459df60759019e98c7e372ba4319f7555 /arch/x86_64/src/memory/paging/tlb.cpp | |
| parent | 77b50aa74e404a7af4b17d05613b21c8e5cd6f49 (diff) | |
| download | kernel-dc80a11864444cae275e9e7be9ae120a92433034.tar.xz kernel-dc80a11864444cae275e9e7be9ae120a92433034.zip | |
Move tlb into seperate subfolder and create cr3 header for reading and writing.
Diffstat (limited to 'arch/x86_64/src/memory/paging/tlb.cpp')
| -rw-r--r-- | arch/x86_64/src/memory/paging/tlb.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/x86_64/src/memory/paging/tlb.cpp b/arch/x86_64/src/memory/paging/tlb.cpp deleted file mode 100644 index c1160dc..0000000 --- a/arch/x86_64/src/memory/paging/tlb.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include "arch/memory/paging/tlb.hpp" - -namespace teachos::arch::memory::paging -{ - auto tlb_flush(virtual_address address) -> void { asm volatile("invlpg (%0)" ::"r"(address) : "memory"); } - auto tlb_flush_all() -> void { tlb_flush(PAGE_TABLE_LEVEL_4_ADDRESS); } -} // namespace teachos::arch::memory::paging |
