]> sourceware.org Git - glibc.git/commitdiff
powerpc: Fix __arch_compare_and_exchange_bool_64_rel
authorAnton Blanchard <anton@samba.org>
Tue, 25 Nov 2014 12:26:12 +0000 (07:26 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 25 Nov 2014 12:28:28 +0000 (07:28 -0500)
Fix a typo in the inline assembly.

ChangeLog
sysdeps/powerpc/powerpc64/bits/atomic.h

index e9ce1412d6cc4cb9fddbc5a6f385bdade4cb7255..f827c3abf649fcac87d39da318a9c57378d2041f 100644 (file)
--- 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.
index 5c4ebb6ad530874d3ba580d3e036aa8257f8e2ad..83b5dfebbd3fdabedfbb16b9d5ae2fcc7bd5a309 100644 (file)
 ({                                                                           \
   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"                                    \
This page took 0.121633 seconds and 5 git commands to generate.