diff options
author | 2021-04-24 00:43:37 -0700 | |
---|---|---|
committer | 2021-04-24 00:43:37 -0700 | |
commit | c4c34367652f206d49cbba8fb502b8c5df4f67a3 (patch) | |
tree | 71dde2730a162f04b82de07a3ea2b89dc7f544dc /src/apic/x2apic.rs | |
parent | 523296c4ecfad57ef26aabdde1446c788dbc668e (diff) | |
download | rust-x86-c4c34367652f206d49cbba8fb502b8c5df4f67a3.tar.gz rust-x86-c4c34367652f206d49cbba8fb502b8c5df4f67a3.tar.zst rust-x86-c4c34367652f206d49cbba8fb502b8c5df4f67a3.zip |
Add fence instructions.
Diffstat (limited to 'src/apic/x2apic.rs')
-rw-r--r-- | src/apic/x2apic.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apic/x2apic.rs b/src/apic/x2apic.rs index 01cc220..28d3a84 100644 --- a/src/apic/x2apic.rs +++ b/src/apic/x2apic.rs @@ -116,7 +116,7 @@ impl ApicControl for X2APIC { /// Set tsc deadline. fn tsc_set(&self, value: u64) { unsafe { - llvm_asm!("mfence" ::: "memory"); + crate::fence::mfence(); wrmsr(IA32_TSC_DEADLINE, value); } } |