Update uses of the deprecated 'asm!' macro to 'llvm_asm!'

This commit is contained in:
Dylan McKay 2020-06-20 05:57:37 +12:00
parent e2443720fb
commit 181a0b7214
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ pub fn without_interrupts<F, T>(f: F) -> T
impl DisableInterrupts {
#[inline]
pub fn new() -> DisableInterrupts {
unsafe { asm!("CLI") }
unsafe { llvm_asm!("CLI") }
DisableInterrupts(PhantomData)
}
}
@ -29,7 +29,7 @@ impl DisableInterrupts {
impl Drop for DisableInterrupts {
#[inline]
fn drop(&mut self) {
unsafe { asm!("SEI") }
unsafe { llvm_asm!("SEI") }
}
}

View File

@ -1,6 +1,6 @@
//! Definitions of register addresses and bits within those registers
#![feature(asm)]
#![feature(llvm_asm)]
#![feature(const_fn)]
#![feature(associated_type_defaults)]
#![feature(lang_items)]