Fix enable_and_halt on arm64
I accidentally used nop instead of wfi
This commit is contained in:
@@ -26,7 +26,7 @@ pub unsafe fn disable() {
|
||||
#[inline(always)]
|
||||
pub unsafe fn enable_and_halt() {
|
||||
unsafe {
|
||||
asm!("msr daifclr, #2", "nop");
|
||||
asm!("msr daifclr, #2", "wfi");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user