about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/bits
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2014-10-18 01:01:58 +0200
committerTorvald Riegel <triegel@redhat.com>2014-10-31 23:26:22 +0100
commit7f981fc24a9156dba8cfe5e7eb8e87fa9d793f2a (patch)
tree10ccc3e9173f0b5a94a9209ab86d6e591b45fafe /sysdeps/powerpc/powerpc32/bits
parentd6f373d21b19565838cb9848c15b8070f2fe1305 (diff)
downloadglibc-7f981fc24a9156dba8cfe5e7eb8e87fa9d793f2a.tar.gz
glibc-7f981fc24a9156dba8cfe5e7eb8e87fa9d793f2a.tar.xz
glibc-7f981fc24a9156dba8cfe5e7eb8e87fa9d793f2a.zip
powerpc: Change atomic_write_barrier to have release semantics.
Diffstat (limited to 'sysdeps/powerpc/powerpc32/bits')
-rw-r--r--sysdeps/powerpc/powerpc32/bits/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc32/bits/atomic.h b/sysdeps/powerpc/powerpc32/bits/atomic.h
index 7613bdc485..a3dd09cd9a 100644
--- a/sysdeps/powerpc/powerpc32/bits/atomic.h
+++ b/sysdeps/powerpc/powerpc32/bits/atomic.h
@@ -117,6 +117,7 @@
 # ifndef UP
 #  define __ARCH_REL_INSTR	"lwsync"
 # endif
+# define atomic_write_barrier()	__asm ("lwsync" ::: "memory")
 #else
 /*
  * Older powerpc32 processors don't support the new "light weight"
@@ -124,6 +125,7 @@
  * for all powerpc32 applications.
  */
 # define atomic_read_barrier()	__asm ("sync" ::: "memory")
+# define atomic_write_barrier()	__asm ("sync" ::: "memory")
 #endif
 
 /*