summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerin Jacob <jerin.jacob@caviumnetworks.com>2017-01-18 06:51:19 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-01-18 16:57:11 +0100
commitb41508b7a4845f2ffd4a78ac2a7177b1dd5cc2d3 (patch)
treed23588dfb3cb89be633430e58f3c208ab4d63a65
parent38b636b7cc53ca6649b639bef3b1912e8828a45b (diff)
downloaddpdk-b41508b7a4845f2ffd4a78ac2a7177b1dd5cc2d3.zip
dpdk-b41508b7a4845f2ffd4a78ac2a7177b1dd5cc2d3.tar.gz
dpdk-b41508b7a4845f2ffd4a78ac2a7177b1dd5cc2d3.tar.xz
eal/armv7: define I/O device memory barriers
The patch does not provide any functional change for ARMv7. I/O barriers are mapped to existing smp barriers. CC: Jan Viktorin <viktorin@rehivetech.com> CC: Jianbo Liu <jianbo.liu@linaro.org> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
-rw-r--r--lib/librte_eal/common/include/arch/arm/rte_atomic_32.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h b/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h
index dd627a0..14c0486 100644
--- a/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h
+++ b/lib/librte_eal/common/include/arch/arm/rte_atomic_32.h
@@ -73,6 +73,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()
+
#ifdef __cplusplus
}
#endif