@@ -54,6 +54,7 @@ AX_VALGRIND_CHECK
##########################################################################
AS_CASE([$host],
[x86*], [ARCH=x86],
+ [arm*], [ARCH=arm],
[mips64*], [ARCH=mips64],
[powerpc*], [ARCH=powerpc],
[ARCH=linux]
@@ -169,6 +169,8 @@ __LIB__libodp_la_SOURCES = \
EXTRA_DIST = \
arch/linux/odp_cpu_arch.c \
arch/linux/odp_sysinfo_parse.c \
+ arch/arm/odp_cpu_arch.c \
+ arch/arm/odp_sysinfo_parse.c \
arch/mips64/odp_cpu_arch.c \
arch/mips64/odp_sysinfo_parse.c \
arch/powerpc/odp_cpu_arch.c \
new file mode 100644
@@ -0,0 +1,36 @@
+/* Copyright (c) 2016, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef ODP_PLAT_CPU_ARCH_H_
+#define ODP_PLAT_CPU_ARCH_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/** @ingroup odp_compiler_optim
+ * @{
+ */
+
+/**
+ * @def ODP_CACHE_LINE_SIZE
+ * Cache line size
+ */
+#define ODP_CACHE_LINE_SIZE 64
+
+/**
+ * @}
+ */
+
+static inline void odp_cpu_pause(void)
+{
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
new file mode 120000
@@ -0,0 +1 @@
+../linux/odp_cpu_arch.c
\ No newline at end of file
new file mode 120000
@@ -0,0 +1 @@
+../linux/odp_sysinfo_parse.c
\ No newline at end of file
@@ -31,12 +31,6 @@ extern "C" {
#define ODP_FIELD_SIZEOF(type, member) sizeof(((type *)0)->member)
-#if defined __arm__ || defined __aarch64__
-
-#define ODP_CACHE_LINE_SIZE 64
-
-#endif
-
#else
#error Non-gcc compatible compiler
#endif