Skip to content

Commit 4f20de1

Browse files
committed
ppc/asm: Fix opal_atomic_wmb definition
* Fix typo in the `opal_atomic_wmb` declaration. * Fix lingering `eieio` reference in the XL assembly to be `lwsync` Signed-off-by: Joshua Hursey <[email protected]> (cherry picked from commit 4f0d436) Signed-off-by: Joshua Hursey <[email protected]>
1 parent 72e0dec commit 4f20de1

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)