Skip to content

Commit a49322e

Browse files
committed
Fix __kuser_cmpxchg inline asm
1 parent 0633d73 commit a49322e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/arm_linux.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use core::mem;
66
unsafe fn __kuser_cmpxchg(oldval: u32, newval: u32, ptr: *mut u32) -> bool {
77
let out: u32;
88
// FIXME: we can't use BLX on ARMv4
9-
asm!("blx ${0}"
9+
asm!("blx ${1}"
1010
: "={r0}" (out)
1111
: "r" (0xffff0fc0u32)
1212
"{r0}" (oldval),

0 commit comments

Comments
 (0)