From: Yongseok Koh Date: Thu, 25 Jan 2018 21:02:44 +0000 (-0800) Subject: eal/x86: define coherent I/O memory barriers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0079e4fb6922f43d32cd6257435a7b75ad5fdaba;p=dpdk.git eal/x86: define coherent I/O memory barriers Signed-off-by: Yongseok Koh --- 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