We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4c0d43f + 94f092e commit 6889000Copy full SHA for 6889000
opal/mca/patcher/patcher.h
@@ -30,9 +30,9 @@
30
* Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9" */
31
# define OPAL_PATCHER_BEGIN \
32
unsigned long toc_save; \
33
- asm volatile("std 2, %0" : "=m"(toc_save)); \
34
- asm volatile("nop; nop; nop; nop; nop");
35
-# define OPAL_PATCHER_END asm volatile("ld 2, %0" : : "m"(toc_save));
+ asm volatile("std 2, %0" : "=m"(toc_save) :: "memory"); \
+ asm volatile("nop; nop; nop; nop; nop"::: "memory");
+# define OPAL_PATCHER_END asm volatile("ld 2, %0" : : "m"(toc_save) : "memory");
36
37
#else /* !__PPC64__ */
38
0 commit comments