From: Raz Ben Yehuda <[email protected]> sfence: All stores (writes) issued before the fence become globally visible before any store issued after the fence memory: Compiler barrier
Signed-off-by: Raz Ben Yehuda <[email protected]> --- arch/x86/include/asm/io.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h index 1390193f09c..9293588c9d7 100644 --- a/arch/x86/include/asm/io.h +++ b/arch/x86/include/asm/io.h @@ -241,6 +241,8 @@ static inline void sync(void) */ #define dmb() __asm__ __volatile__ ("" : : : "memory") #define mb() __asm__ __volatile__ ("mfence" : : : "memory") +#define wmb() __asm__ __volatile__ ("sfence" ::: "memory") /* store mem barrier */ + #define __iormb() dmb() #define __iowmb() dmb() -- 2.43.0

