libatomic_ops/libatomic_ops-ppc64.patch
Jan Engelhardt 0971fe1063 Accepting request 222089 from home:k0da:ppc
- Drop incorrect ppc64le patch
- Force AO_load() to map to AO_load_acquire() for powerpc
- added patches:
  * libatomic_ops-ppc64.patch
- removed patches:
  * libatomic_ops-ppc64le.patch

OBS-URL: https://build.opensuse.org/request/show/222089
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libatomic_ops?expand=0&rev=10
2014-02-12 23:04:42 +00:00

22 lines
796 B
Diff

Force AO_load() to map to AO_load_acquire() for powerpc. The
AO_load_acquire() function includes isync instructions that
are critical for proper behavior on power system.
Signed-Off-By: Will Schmidt <will_schmidt at vnet.ibm.com>
Index: libatomic_ops-7.2/src/atomic_ops/sysdeps/gcc/powerpc.h
===================================================================
--- libatomic_ops-7.2.orig/src/atomic_ops/sysdeps/gcc/powerpc.h
+++ libatomic_ops-7.2/src/atomic_ops/sysdeps/gcc/powerpc.h
@@ -32,6 +32,8 @@
#include "../all_aligned_atomic_load_store.h"
+#define AO_load(addr) AO_load_acquire(addr)
+
#include "../test_and_set_t_is_ao_t.h"
/* There seems to be no byte equivalent of lwarx, so this */
/* may really be what we want, at least in the 32-bit case. */