mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-11 11:56:48 +00:00
locking/atomic, arch/sh: Fix ATOMIC_FETCH_OP()
We cannot use the "z" constraint twice, since its a single register (r0). Change the one not used by movli.l/movco.l to "r". Reported-by: Fengguang Wu <fengguang.wu@intel.com> Tested-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rich Felker <dalias@libc.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
7d1e042314
commit
9bf6ffdabd
@ -60,7 +60,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v) \
|
|||||||
" movco.l %0, @%3 \n" \
|
" movco.l %0, @%3 \n" \
|
||||||
" bf 1b \n" \
|
" bf 1b \n" \
|
||||||
" synco \n" \
|
" synco \n" \
|
||||||
: "=&z" (temp), "=&z" (res) \
|
: "=&z" (temp), "=&r" (res) \
|
||||||
: "r" (i), "r" (&v->counter) \
|
: "r" (i), "r" (&v->counter) \
|
||||||
: "t"); \
|
: "t"); \
|
||||||
\
|
\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user