powerpc: Fix __arch_compare_and_exchange_bool_64_rel

Fix a typo in the inline assembly.
This commit is contained in:
Anton Blanchard 2014-11-25 07:26:12 -05:00 committed by Adhemerval Zanella
parent 467fec0bb4
commit 5fbb569186
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-11-25 Anton Blanchard <anton@samba.org>
* sysdeps/powerpc/bits/atomic.h
(__arch_compare_and_exchange_bool_64_rel): Load from mem.
2014-11-24 Sterling Augustine <saugustine@google.com>
* sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.

View File

@ -100,7 +100,7 @@
({ \
unsigned long __tmp; \
__asm __volatile (__ARCH_REL_INSTR "\n" \
"1: ldarx %0,0,%2" MUTEX_HINT_REL "\n" \
"1: ldarx %0,0,%1" MUTEX_HINT_REL "\n" \
" subf. %0,%2,%0\n" \
" bne 2f\n" \
" stdcx. %3,0,%1\n" \