diff --git a/src/interrupt.rs b/src/interrupt.rs index 83d358b..34a2697 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -21,7 +21,7 @@ pub fn without_interrupts(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") } } } diff --git a/src/lib.rs b/src/lib.rs index 92079e1..4702f30 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)]