@@ -181,14 +181,13 @@ AS_CASE([$host],
[powerpc*], [ARCH_ABI=power64-linux],
[aarch64*], [ARCH_ABI=arm64-linux],
[arm*], [ARCH_ABI=arm32-linux],
- [ARCH_ABI=undefined]
+ [ARCH_ABI=default-linux]
)
AC_SUBST([ARCH_ABI])
-if test "${ARCH_ABI}" = "undefined";
+if test "${ARCH_ABI}" = "default-linux";
then
- echo "ARCH_ABI is undefined, please add your ARCH_ABI based on host=${host}"
- exit 1
+ AC_MSG_WARN([ARCH_ABI is undefined, please add your ARCH_ABI based on host=${host}])
fi
##########################################################################
@@ -226,6 +226,44 @@ odpapiabiarchinclude_HEADERS = \
odp/arch/arm64-linux/odp/api/abi/traffic_mngr.h \
odp/arch/arm64-linux/odp/api/abi/version.h
endif
+if ARCH_IS_DEFAULT
+odpapiabiarchinclude_HEADERS = \
+ odp/arch/default-linux/odp/api/abi/align.h \
+ odp/arch/default-linux/odp/api/abi/atomic.h \
+ odp/arch/default-linux/odp/api/abi/barrier.h \
+ odp/arch/default-linux/odp/api/abi/buffer.h \
+ odp/arch/default-linux/odp/api/abi/byteorder.h \
+ odp/arch/default-linux/odp/api/abi/classification.h \
+ odp/arch/default-linux/odp/api/abi/cpu.h \
+ odp/arch/default-linux/odp/api/abi/cpumask.h \
+ odp/arch/default-linux/odp/api/abi/crypto.h \
+ odp/arch/default-linux/odp/api/abi/debug.h \
+ odp/arch/default-linux/odp/api/abi/event.h \
+ odp/arch/default-linux/odp/api/abi/init.h \
+ odp/arch/default-linux/odp/api/abi/ipsec.h \
+ odp/arch/default-linux/odp/api/abi/packet.h \
+ odp/arch/default-linux/odp/api/abi/packet_flags.h \
+ odp/arch/default-linux/odp/api/abi/packet_io.h \
+ odp/arch/default-linux/odp/api/abi/pool.h \
+ odp/arch/default-linux/odp/api/abi/queue.h \
+ odp/arch/default-linux/odp/api/abi/rwlock.h \
+ odp/arch/default-linux/odp/api/abi/rwlock_recursive.h \
+ odp/arch/default-linux/odp/api/abi/schedule.h \
+ odp/arch/default-linux/odp/api/abi/schedule_types.h \
+ odp/arch/default-linux/odp/api/abi/shared_memory.h \
+ odp/arch/default-linux/odp/api/abi/spinlock.h \
+ odp/arch/default-linux/odp/api/abi/spinlock_recursive.h \
+ odp/arch/default-linux/odp/api/abi/std_clib.h \
+ odp/arch/default-linux/odp/api/abi/std_types.h \
+ odp/arch/default-linux/odp/api/abi/sync.h \
+ odp/arch/default-linux/odp/api/abi/thread.h \
+ odp/arch/default-linux/odp/api/abi/thrmask.h \
+ odp/arch/default-linux/odp/api/abi/ticketlock.h \
+ odp/arch/default-linux/odp/api/abi/time.h \
+ odp/arch/default-linux/odp/api/abi/timer.h \
+ odp/arch/default-linux/odp/api/abi/traffic_mngr.h \
+ odp/arch/default-linux/odp/api/abi/version.h
+endif
if ARCH_IS_MIPS64
odpapiabiarchinclude_HEADERS = \
odp/arch/mips64-linux/odp/api/abi/align.h \
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/align.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/atomic.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/barrier.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/buffer.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/byteorder.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/classification.h>
new file mode 100644
@@ -0,0 +1,24 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#ifndef ODP_API_ABI_CPU_H_
+#define ODP_API_ABI_CPU_H_
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define ODP_CACHE_LINE_SIZE 64
+
+static inline void odp_cpu_pause(void)
+{
+}
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/cpumask.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/crypto.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/debug.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/event.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/init.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/ipsec.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/packet.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/packet_flags.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/packet_io.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/pool.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/queue.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/rwlock.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/rwlock_recursive.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/schedule.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/schedule_types.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/shared_memory.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/spinlock.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/spinlock_recursive.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/std_clib.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/std_types.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/sync.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/thread.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/thrmask.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/ticketlock.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/time.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/timer.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/traffic_mngr.h>
new file mode 100644
@@ -0,0 +1,7 @@
+/* Copyright (c) 2018, Linaro Limited
+ * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include <odp/api/abi-default/version.h>