mirror of https://gitee.com/openkylin/linux.git
ARM: 6519/1: kuser: Fix incorrect cmpxchg syscall in kuser helpers
The existing code invokes the syscall with rubbish in r7, due to what looks like an incorrect literal load idiom. Reviewed-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Dave Martin <dave.martin@linaro.org> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
ed7c84d548
commit
55afd264cd
|
@ -911,7 +911,7 @@ __kuser_cmpxchg: @ 0xffff0fc0
|
||||||
* A special ghost syscall is used for that (see traps.c).
|
* A special ghost syscall is used for that (see traps.c).
|
||||||
*/
|
*/
|
||||||
stmfd sp!, {r7, lr}
|
stmfd sp!, {r7, lr}
|
||||||
ldr r7, =1f @ it's 20 bits
|
ldr r7, 1f @ it's 20 bits
|
||||||
swi __ARM_NR_cmpxchg
|
swi __ARM_NR_cmpxchg
|
||||||
ldmfd sp!, {r7, pc}
|
ldmfd sp!, {r7, pc}
|
||||||
1: .word __ARM_NR_cmpxchg
|
1: .word __ARM_NR_cmpxchg
|
||||||
|
|
Loading…
Reference in New Issue