aboutsummaryrefslogtreecommitdiff
path: root/src/irq.rs
diff options
context:
space:
mode:
authorGravatar Gerd Zellweger <mail@gerdzellweger.com> 2020-04-24 13:53:11 -0700
committerGravatar Gerd Zellweger <mail@gerdzellweger.com> 2020-04-24 13:53:11 -0700
commit7dfc9751ee1c13a863074fe693fb01c8716ab5c3 (patch)
tree449ce71f8605179d08e23e566d7a7677afa229e6 /src/irq.rs
parent5230e09a05b44ae9993d1e1c72be9abf0f689428 (diff)
downloadrust-x86-7dfc9751ee1c13a863074fe693fb01c8716ab5c3.tar.gz
rust-x86-7dfc9751ee1c13a863074fe693fb01c8716ab5c3.tar.zst
rust-x86-7dfc9751ee1c13a863074fe693fb01c8716ab5c3.zip
llvm_asm! instead of asm! to compile on nightly.
Diffstat (limited to 'src/irq.rs')
-rw-r--r--src/irq.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irq.rs b/src/irq.rs
index 5a29663..47b8e1e 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() {
- asm!("sti");
+ llvm_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() {
- asm!("cli");
+ llvm_asm!("cli");
}
/// Generate a software interrupt.
@@ -368,7 +368,7 @@ pub unsafe fn disable() {
#[macro_export]
macro_rules! int {
($x:expr) => {{
- asm!("int $0" :: "N" ($x));
+ llvm_asm!("int $0" :: "N" ($x));
}};
}