powerpc
authorAlastair McKinstry <mckinstry@debian.org>
Tue, 24 Apr 2018 16:47:14 +0000 (17:47 +0100)
committerAlastair McKinstry <mckinstry@debian.org>
Tue, 24 Apr 2018 16:47:14 +0000 (17:47 +0100)
Gbp-Pq: Name powerpc.patch

opal/include/opal/sys/powerpc/atomic.h

index 060331ef95e8eafcb59110d94d1eaec47cbfeaa0..0a7895c868a32bdb42442a325a643692d8ca48ca 100644 (file)
  * On powerpc ...
  */
 
+/* Hack on Debian. See: https://github.com/open-mpi/ompi/issues/2055
+ *   -- amck, 2016-09-05
+ */
+#undef OPAL_GCC_INLINE_ASSEMBLY
+#define OPAL_GCC_INLINE_ASSEMBLY 1
+
+
 #define MB()  __asm__ __volatile__ ("sync" : : : "memory")
 #define RMB() __asm__ __volatile__ ("lwsync" : : : "memory")
 #define WMB() __asm__ __volatile__ ("lwsync" : : : "memory")