2015-04-11 07:44:37 +08:00
|
|
|
/* cpu.h - automatically selects the correct arch.h file to include */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 1997-2014 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2015-04-11 07:44:37 +08:00
|
|
|
*/
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#ifndef ZEPHYR_INCLUDE_ARCH_CPU_H_
|
|
|
|
#define ZEPHYR_INCLUDE_ARCH_CPU_H_
|
2015-04-11 07:44:37 +08:00
|
|
|
|
2019-10-24 23:08:21 +08:00
|
|
|
#include <sys/arch_interface.h>
|
2019-10-04 06:20:41 +08:00
|
|
|
|
2019-07-05 02:27:20 +08:00
|
|
|
#if defined(CONFIG_X86)
|
|
|
|
#include <arch/x86/arch.h>
|
2019-11-11 00:17:19 +08:00
|
|
|
#elif defined(CONFIG_ARM64)
|
|
|
|
#include <arch/arm/aarch64/arch.h>
|
2015-06-06 10:27:08 +08:00
|
|
|
#elif defined(CONFIG_ARM)
|
2019-11-10 01:49:36 +08:00
|
|
|
#include <arch/arm/aarch32/arch.h>
|
2015-06-06 10:27:49 +08:00
|
|
|
#elif defined(CONFIG_ARC)
|
2015-05-29 01:56:47 +08:00
|
|
|
#include <arch/arc/arch.h>
|
2016-04-22 05:47:09 +08:00
|
|
|
#elif defined(CONFIG_NIOS2)
|
|
|
|
#include <arch/nios2/arch.h>
|
2019-07-18 01:17:05 +08:00
|
|
|
#elif defined(CONFIG_RISCV)
|
|
|
|
#include <arch/riscv/arch.h>
|
2017-01-21 03:52:29 +08:00
|
|
|
#elif defined(CONFIG_XTENSA)
|
|
|
|
#include <arch/xtensa/arch.h>
|
2017-10-03 22:31:55 +08:00
|
|
|
#elif defined(CONFIG_ARCH_POSIX)
|
|
|
|
#include <arch/posix/arch.h>
|
2020-10-17 02:53:59 +08:00
|
|
|
#elif defined(CONFIG_SPARC)
|
|
|
|
#include <arch/sparc/arch.h>
|
2015-04-11 07:44:37 +08:00
|
|
|
#else
|
2015-06-06 10:33:49 +08:00
|
|
|
#error "Unknown Architecture"
|
2015-04-11 07:44:37 +08:00
|
|
|
#endif
|
|
|
|
|
2018-09-15 01:43:44 +08:00
|
|
|
#endif /* ZEPHYR_INCLUDE_ARCH_CPU_H_ */
|