Skip to content

Commit 69d0d0a

Browse files
committed
convert inline assmebly to the new assembly format
1 parent d180a2b commit 69d0d0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arch/x86_64/processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use x86::io::*;
88
#[inline(always)]
99
pub fn mb() {
1010
unsafe {
11-
llvm_asm!("mfence" ::: "memory" : "volatile");
11+
asm!("mfence", options(preserves_flags, nostack));
1212
}
1313
}
1414

0 commit comments

Comments
 (0)