summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorCyril Chemparathy <cchemparathy@ezchip.com>2015-06-22 11:34:19 -0700
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-06-24 12:00:41 +0200
commit7621d6a8d0bdb39b58ee7c4176a0f2e920b8113d (patch)
treed2f4d204fb5bf13694fbcd587dd6d4785dbe9190 /config
parent0052d53df4a407627d58a908bfe348ba5c44d462 (diff)
downloaddpdk-7621d6a8d0bdb39b58ee7c4176a0f2e920b8113d.zip
dpdk-7621d6a8d0bdb39b58ee7c4176a0f2e920b8113d.tar.gz
dpdk-7621d6a8d0bdb39b58ee7c4176a0f2e920b8113d.tar.xz
eal: add and use unaligned integer types
On machines that are strict on pointer alignment, current code breaks on GCC's -Wcast-align checks on casts from narrower to wider types. This patch introduces new unaligned_uint(16|32|64)_t types, which correctly retain alignment in such cases. Strict alignment architectures will need to define CONFIG_RTE_ARCH_STRICT_ALIGN in order to effect these new types. Signed-off-by: Cyril Chemparathy <cchemparathy@ezchip.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_bsdapp5
-rw-r--r--config/common_linuxapp5
2 files changed, 10 insertions, 0 deletions
diff --git a/config/common_bsdapp b/config/common_bsdapp
index 434ba0b..464250b 100644
--- a/config/common_bsdapp
+++ b/config/common_bsdapp
@@ -74,6 +74,11 @@ CONFIG_RTE_EXEC_ENV_BSDAPP=y
CONFIG_RTE_FORCE_INTRINSICS=n
#
+# Machine forces strict alignment constraints.
+#
+CONFIG_RTE_ARCH_STRICT_ALIGN=n
+
+#
# Compile to share library
#
CONFIG_RTE_BUILD_SHARED_LIB=n
diff --git a/config/common_linuxapp b/config/common_linuxapp
index 724f692..aae22f4 100644
--- a/config/common_linuxapp
+++ b/config/common_linuxapp
@@ -74,6 +74,11 @@ CONFIG_RTE_EXEC_ENV_LINUXAPP=y
CONFIG_RTE_FORCE_INTRINSICS=n
#
+# Machine forces strict alignment constraints.
+#
+CONFIG_RTE_ARCH_STRICT_ALIGN=n
+
+#
# Compile to share library
#
CONFIG_RTE_BUILD_SHARED_LIB=n