Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a49322e

Browse files
committedDec 20, 2017
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.