projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sh: Fix sh4a llsc-based cmpxchg()
[profile/ivi/kernel-adaptation-intel-automotive.git]
/
arch
/
sh
/
include
/
asm
/
cmpxchg-llsc.h
diff --git
a/arch/sh/include/asm/cmpxchg-llsc.h
b/arch/sh/include/asm/cmpxchg-llsc.h
index
0fac3da
..
4713666
100644
(file)
--- a/
arch/sh/include/asm/cmpxchg-llsc.h
+++ b/
arch/sh/include/asm/cmpxchg-llsc.h
@@
-55,7
+55,7
@@
__cmpxchg_u32(volatile int *m, unsigned long old, unsigned long new)
"mov %0, %1 \n\t"
"cmp/eq %1, %3 \n\t"
"bf 2f \n\t"
- "mov %
3
, %0 \n\t"
+ "mov %
4
, %0 \n\t"
"2: \n\t"
"movco.l %0, @%2 \n\t"
"bf 1b \n\t"