Line data Source code
1 0 : /* cpu.h - automatically selects the correct arch.h file to include */ 2 : 3 : /* 4 : * Copyright (c) 1997-2014 Wind River Systems, Inc. 5 : * 6 : * SPDX-License-Identifier: Apache-2.0 7 : */ 8 : 9 : #ifndef ZEPHYR_INCLUDE_ARCH_CPU_H_ 10 : #define ZEPHYR_INCLUDE_ARCH_CPU_H_ 11 : 12 : #include <zephyr/arch/arch_interface.h> 13 : 14 : #if defined(CONFIG_X86) 15 : #include <zephyr/arch/x86/arch.h> 16 : #elif defined(CONFIG_ARM64) 17 : #include <zephyr/arch/arm64/arch.h> 18 : #elif defined(CONFIG_ARM) 19 : #include <zephyr/arch/arm/arch.h> 20 : #elif defined(CONFIG_ARC) 21 : #include <zephyr/arch/arc/arch.h> 22 : #elif defined(CONFIG_NIOS2) 23 : #include <zephyr/arch/nios2/arch.h> 24 : #elif defined(CONFIG_RISCV) 25 : #include <zephyr/arch/riscv/arch.h> 26 : #elif defined(CONFIG_XTENSA) 27 : #include <zephyr/arch/xtensa/arch.h> 28 : #elif defined(CONFIG_MIPS) 29 : #include <zephyr/arch/mips/arch.h> 30 : #elif defined(CONFIG_ARCH_POSIX) 31 : #include <zephyr/arch/posix/arch.h> 32 : #elif defined(CONFIG_SPARC) 33 : #include <zephyr/arch/sparc/arch.h> 34 : #endif 35 : 36 : #endif /* ZEPHYR_INCLUDE_ARCH_CPU_H_ */