]> git.ipfire.org Git - thirdparty/glibc.git/commit
powerpc: Fix missing barriers in atomic_exchange_and_add_{acq,rel}
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 25 Nov 2014 19:32:54 +0000 (14:32 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 14 Jan 2015 11:04:53 +0000 (06:04 -0500)
commit8b063985c1a750a1947fcf60e4606a3b0d7d0f37
treed159dfed8dce3a5ee54d9d09c1ba45bdcb9818b8
parent364c58517bdcc91c5bf1fcb57b4befff8951a51b
powerpc: Fix missing barriers in atomic_exchange_and_add_{acq,rel}

On powerpc, atomic_exchange_and_add is implemented without any
barriers.  This patchs adds the missing instruction and memory barrier
for acquire and release semanthics.
ChangeLog
csu/tst-atomic.c
sysdeps/powerpc/bits/atomic.h
sysdeps/powerpc/powerpc32/bits/atomic.h
sysdeps/powerpc/powerpc64/bits/atomic.h