diff options
author | Jere Leppänen <jere.leppanen@nokia.com> | 2021-01-21 17:46:11 +0200 |
---|---|---|
committer | Petri Savolainen <petri.savolainen@nokia.com> | 2021-02-12 08:43:57 +0200 |
commit | 596cec45ded4a9b9f0749292c30b96aef5b2ea7a (patch) | |
tree | 30a261b3ce215388be8b01d154c444f44ad8961b /platform/linux-generic/arch/x86 | |
parent | 95075c29b05a1c1f99d245de6b6a57857d3b57d7 (diff) |
linux-gen: introduce _ODP_UNALIGNED macro
The _ODP_UNALIGNED pre-processor macro is defined as 1 if the CPU
features efficient unaligned memory access, 0 otherwise.
Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/arch/x86')
-rw-r--r-- | platform/linux-generic/arch/x86/odp_cpu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/linux-generic/arch/x86/odp_cpu.h b/platform/linux-generic/arch/x86/odp_cpu.h new file mode 100644 index 000000000..8f8f22daf --- /dev/null +++ b/platform/linux-generic/arch/x86/odp_cpu.h @@ -0,0 +1,14 @@ +/* Copyright (c) 2021, Nokia + * All rights reserved. + * + * SPDX-License-Identifier: BSD-3-Clause + */ + +#ifndef ODP_X86_CPU_H_ +#define ODP_X86_CPU_H_ + +#define _ODP_UNALIGNED 1 + +#include <default/odp_cpu.h> + +#endif |