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 {
|
impl DisableInterrupts {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn new() -> DisableInterrupts {
|
pub fn new() -> DisableInterrupts {
|
||||||
unsafe { asm!("CLI") }
|
unsafe { llvm_asm!("CLI") }
|
||||||
DisableInterrupts(PhantomData)
|
DisableInterrupts(PhantomData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ impl DisableInterrupts {
|
||||||
impl Drop for DisableInterrupts {
|
impl Drop for DisableInterrupts {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
unsafe { asm!("SEI") }
|
unsafe { llvm_asm!("SEI") }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//! Definitions of register addresses and bits within those registers
|
//! Definitions of register addresses and bits within those registers
|
||||||
|
|
||||||
#![feature(asm)]
|
#![feature(llvm_asm)]
|
||||||
#![feature(const_fn)]
|
#![feature(const_fn)]
|
||||||
#![feature(associated_type_defaults)]
|
#![feature(associated_type_defaults)]
|
||||||
#![feature(lang_items)]
|
#![feature(lang_items)]
|
||||||
|
|
Loading…
Reference in New Issue