aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-11-25 07:26:12 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-11-25 07:28:28 -0500
commit5fbb569186ef678d7ca3b7b865dd36f851eb433c (patch)
tree458e410b3691d26e9428b7c92706385430991c1b /sysdeps
parent467fec0bb47464ff49e7075194342b028c75c72f (diff)
downloadglibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.zip
glibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.tar.gz
glibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.tar.bz2
powerpc: Fix __arch_compare_and_exchange_bool_64_rel
Fix a typo in the inline assembly.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/powerpc64/bits/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/bits/atomic.h b/sysdeps/powerpc/powerpc64/bits/atomic.h
index 5c4ebb6..83b5dfe 100644
--- a/sysdeps/powerpc/powerpc64/bits/atomic.h
+++ b/sysdeps/powerpc/powerpc64/bits/atomic.h
@@ -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" \