From 0079e4fb6922f43d32cd6257435a7b75ad5fdaba Mon Sep 17 00:00:00 2001 From: Yongseok Koh Date: Thu, 25 Jan 2018 13:02:44 -0800 Subject: [PATCH] eal/x86: define coherent I/O memory barriers Signed-off-by: Yongseok Koh --- lib/librte_eal/common/include/arch/x86/rte_atomic.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_eal/common/include/arch/x86/rte_atomic.h b/lib/librte_eal/common/include/arch/x86/rte_atomic.h index 36cfabc38f..8fb796c635 100644 --- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h @@ -39,6 +39,10 @@ extern "C" { #define rte_io_rmb() rte_compiler_barrier() +#define rte_cio_wmb() rte_compiler_barrier() + +#define rte_cio_rmb() rte_compiler_barrier() + /*------------------------- 16 bit atomic operations -------------------------*/ #ifndef RTE_FORCE_INTRINSICS -- 2.20.1