Update uses of the deprecated 'asm!' macro to 'llvm_asm!'
This commit is contained in:
parent
e2443720fb
commit
181a0b7214
|
@ -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") }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue