aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2021-09-21 11:27:57 -0700
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2021-09-21 11:27:57 -0700
commitf9cce7be3da4f8b1f748da36deb4c87f2716804f (patch)
tree535a81908a2e0c1c3e11eff1dbbf0f90799bd7a5 /src
parent8de9d1be61545a3bad0ac7316a2df4c7fac9ab98 (diff)
downloadrust-x86-f9cce7be3da4f8b1f748da36deb4c87f2716804f.tar.gz
rust-x86-f9cce7be3da4f8b1f748da36deb4c87f2716804f.tar.zst
rust-x86-f9cce7be3da4f8b1f748da36deb4c87f2716804f.zip
Some trivial transforms from llvm_asm to asm.
Diffstat (limited to 'src')
-rw-r--r--src/irq.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irq.rs b/src/irq.rs
index 47b8e1e..5a29663 100644
--- a/src/irq.rs
+++ b/src/irq.rs
@@ -352,7 +352,7 @@ impl fmt::Display for PageFaultError {
/// # Safety
/// Only allowed if we have IO privileges for the current operating level in RFlags.
pub unsafe fn enable() {
- llvm_asm!("sti");
+ asm!("sti");
}
/// Disable Interrupts.
@@ -360,7 +360,7 @@ pub unsafe fn enable() {
/// # Safety
/// Only allowed if we have IO privileges for the current operating level in RFlags.
pub unsafe fn disable() {
- llvm_asm!("cli");
+ asm!("cli");
}
/// Generate a software interrupt.
@@ -368,7 +368,7 @@ pub unsafe fn disable() {
#[macro_export]
macro_rules! int {
($x:expr) => {{
- llvm_asm!("int $0" :: "N" ($x));
+ asm!("int $0" :: "N" ($x));
}};
}