aboutsummaryrefslogtreecommitdiff
path: root/src/tlb.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tlb.rs')
-rw-r--r--src/tlb.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tlb.rs b/src/tlb.rs
index f20e37e..ec39e3e 100644
--- a/src/tlb.rs
+++ b/src/tlb.rs
@@ -6,7 +6,7 @@
/// This function is unsafe as it causes a general protection fault (GP) if the current privilege
/// level is not 0.
pub unsafe fn flush(addr: usize) {
- asm!("invlpg ($0)" :: "r" (addr) : "memory" : "volatile");
+ asm!("invlpg ($0)" :: "r" (addr) : "memory");
}
/// Invalidate the TLB completely by reloading the CR3 register.