change lateout to out

This commit is contained in:
Simon Renblad 2024-12-30 15:57:53 +08:00
parent c48ec58b9e
commit f6edec89ba

View File

@ -54,7 +54,7 @@ pub unsafe fn enter_critical() -> bool {
let mut cpsr: u32; let mut cpsr: u32;
asm!( asm!(
"mrs {}, cpsr "mrs {}, cpsr
cpsid i", lateout(reg) cpsr); cpsid i", out(reg) cpsr);
(cpsr & (1 << 7)) == 0 (cpsr & (1 << 7)) == 0
} }