fix a critical typo

This commit is contained in:
Lokathor 2022-01-10 15:40:11 -07:00 committed by GitHub
parent 456e4f4fc0
commit 5c5081ddc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ pub unsafe fn Stop() {
pub unsafe fn IntrWait(discard_current_flags: bool, flags: crate::mmio_types::InterruptFlags) {
// Note(Lokathor): we don't mark this preserves_flags because the user's IRQ
// handler gets called which might end up trashing the flags.
asm!("swi 0x03",
asm!("swi 0x04",
inlateout("r0") discard_current_flags as u8 => _,
inlateout("r1") flags.0 => _,
out("r3") _,