From: Jerin Jacob Date: Wed, 18 Jan 2017 01:21:17 +0000 (+0530) Subject: eal/ppc64: define I/O device memory barriers X-Git-Tag: spdx-start~4756 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=da07a35be5c957b879ea0a28b49f1c10dca0cc82;p=dpdk.git eal/ppc64: define I/O device memory barriers The patch does not provide any functional change for ppc_64. I/O barriers are mapped to existing smp barriers. CC: Chao Zhu Signed-off-by: Jerin Jacob --- diff --git a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h index fb4fccb480..150810cdb3 100644 --- a/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h +++ b/lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h @@ -87,6 +87,12 @@ extern "C" { #define rte_smp_rmb() rte_rmb() +#define rte_io_mb() rte_mb() + +#define rte_io_wmb() rte_wmb() + +#define rte_io_rmb() rte_rmb() + /*------------------------- 16 bit atomic operations -------------------------*/ /* To be compatible with Power7, use GCC built-in functions for 16 bit * operations */