forked from pool/libatomic_ops
Jan Engelhardt
0971fe1063
- 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
22 lines
796 B
Diff
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. */
|