Skip to content

Commit 50f3f49

Browse files
authored
Merge pull request #3670 from jjhursey/fix/v3.0.x/ppc-wmb
atomics/powerpc: Fix WMB instruction
2 parents f299666 + 385abe8 commit 50f3f49

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2010 IBM Corporation. All rights reserved.
13+
* Copyright (c) 2010-2017 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2015-2016 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* $COPYRIGHT$
@@ -29,10 +29,8 @@
2929

3030
#define MB() __asm__ __volatile__ ("sync" : : : "memory")
3131
#define RMB() __asm__ __volatile__ ("lwsync" : : : "memory")
32-
#define WMB() __asm__ __volatile__ ("eieio" : : : "memory")
32+
#define WMB() __asm__ __volatile__ ("lwsync" : : : "memory")
3333
#define ISYNC() __asm__ __volatile__ ("isync" : : : "memory")
34-
#define SMP_SYNC "sync \n\t"
35-
#define SMP_ISYNC "\n\tisync"
3634

3735

3836
/**********************************************************************

0 commit comments

Comments
 (0)