Skip to content

Commit fdc6759

Browse files
authored
Merge pull request #4546 from jjhursey/fix/v3.0.x/ppc-asm-eieio
ppc/asm: Fix opal_atomic_wmb definition
2 parents 9eee5d8 + 4f20de1 commit fdc6759

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void opal_atomic_rmb(void)
8383
static inline
8484
void opal_atomic_wmb(void)
8585
{
86-
RMB();
86+
WMB();
8787
}
8888

8989
static inline
@@ -109,7 +109,7 @@ void opal_atomic_isync(void)
109109
#pragma mc_func opal_atomic_rmb { "7c2004ac" } /* lwsync */
110110
#pragma reg_killed_by opal_atomic_rmb /* none */
111111

112-
#pragma mc_func opal_atomic_wmb { "7c0006ac" } /* eieio */
112+
#pragma mc_func opal_atomic_wmb { "7c2004ac" } /* lwsync */
113113
#pragma reg_killed_by opal_atomic_wmb /* none */
114114

115115
#endif

0 commit comments

Comments
 (0)