aarch64: Make interrupt::pause use nop so we can move ahead before interrupts are enabled

This commit is contained in:
Robin Randhawa
2021-01-15 19:02:43 +00:00
parent 825bc4a02d
commit 6677cfbf1e

View File

@@ -49,7 +49,7 @@ pub unsafe fn halt() {
/// Safe because it is similar to a NOP, and has no memory effects
#[inline(always)]
pub fn pause() {
unsafe { llvm_asm!("wfi") };
unsafe { llvm_asm!("nop") };
}
pub fn available_irqs_iter(cpu_id: usize) -> impl Iterator<Item = u8> + 'static {