diff options
author | 2021-09-21 11:27:57 -0700 | |
---|---|---|
committer | 2021-09-21 11:27:57 -0700 | |
commit | f9cce7be3da4f8b1f748da36deb4c87f2716804f (patch) | |
tree | 535a81908a2e0c1c3e11eff1dbbf0f90799bd7a5 /src | |
parent | 8de9d1be61545a3bad0ac7316a2df4c7fac9ab98 (diff) | |
download | rust-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.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)); }}; } |