aboutsummaryrefslogtreecommitdiff
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
parent467fec0bb47464ff49e7075194342b028c75c72f (diff)
downloadglibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.tar
glibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.tar.gz
glibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.tar.bz2
glibc-5fbb569186ef678d7ca3b7b865dd36f851eb433c.zip
powerpc: Fix __arch_compare_and_exchange_bool_64_rel
Fix a typo in the inline assembly.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/powerpc64/bits/atomic.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e9ce1412d6..f827c3abf6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/sysdeps/powerpc/powerpc64/bits/atomic.h b/sysdeps/powerpc/powerpc64/bits/atomic.h
index 5c4ebb6ad5..83b5dfebbd 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" \