]> git.ipfire.org Git - thirdparty/glibc.git/commit - sysdeps/powerpc/powerpc32/atomic-machine.h
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, 26 Nov 2014 12:06:28 +0000 (07:06 -0500)
commit704f794714704ba430d84d10d6809acaf7ca59bf
tree753816581f7d1f54d4af4921d776077b31a9a4e4
parentcdcb42d7f786fe5ee1ca60065924d0b5c6649dd0
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