diff options
author | Mike Holmes <mike.holmes@linaro.org> | 2016-05-09 07:59:58 -0400 |
---|---|---|
committer | Mike Holmes <mike.holmes@linaro.org> | 2016-05-10 05:57:08 -0400 |
commit | ac9f523f4d4d1f1c2108dbde3be77dbb7595447c (patch) | |
tree | 733e2d4796893f6f50ff4423f3c9f4abf38cb433 /platform/linux-generic/arch/default/odp/api | |
parent | f0ffb68eff2b2ec858b80e809e1766e2081e541a (diff) |
linux-generic: correctly set arch as undefined
arch is defined as an architecture flag so that optimisations or
necessary differences can be accommodated. When we are unable to
determine the architecture it is incorrect to assign it the value of an
operating system. Instead lets label it correctly as a default and add
an error to the user when an unknown arch is encountered.
Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org>
Diffstat (limited to 'platform/linux-generic/arch/default/odp/api')
-rw-r--r-- | platform/linux-generic/arch/default/odp/api/cpu_arch.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/linux-generic/arch/default/odp/api/cpu_arch.h b/platform/linux-generic/arch/default/odp/api/cpu_arch.h new file mode 100644 index 000000000..29f8889ec --- /dev/null +++ b/platform/linux-generic/arch/default/odp/api/cpu_arch.h @@ -0,0 +1,32 @@ +/* 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 + * @{ + */ + +#define ODP_CACHE_LINE_SIZE 64 + +/** + * @} + */ + +static inline void odp_cpu_pause(void) +{ +} + +#ifdef __cplusplus +} +#endif + +#endif |