Skip to content

Commit

Permalink
Fix __kuser_cmpxchg inline asm
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Dec 20, 2017
1 parent 0633d73 commit a49322e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arm_linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use core::mem;
unsafe fn __kuser_cmpxchg(oldval: u32, newval: u32, ptr: *mut u32) -> bool {
let out: u32;
// FIXME: we can't use BLX on ARMv4
asm!("blx ${0}"
asm!("blx ${1}"
: "={r0}" (out)
: "r" (0xffff0fc0u32)
"{r0}" (oldval),
Expand Down

0 comments on commit a49322e

Please sign in to comment.