1 /* exception.h - automatically selects the correct exception.h file to include */ 2 3 /* 4 * Copyright (c) 2024 Meta Platforms 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8 #ifndef ZEPHYR_INCLUDE_ARCH_EXCEPTION_H_ 9 #define ZEPHYR_INCLUDE_ARCH_EXCEPTION_H_ 10 11 #if defined(CONFIG_X86_64) 12 #include <zephyr/arch/x86/intel64/exception.h> 13 #elif defined(CONFIG_X86) 14 #include <zephyr/arch/x86/ia32/exception.h> 15 #elif defined(CONFIG_ARM64) 16 #include <zephyr/arch/arm64/exception.h> 17 #elif defined(CONFIG_ARM) 18 #include <zephyr/arch/arm/exception.h> 19 #elif defined(CONFIG_ARC) 20 #include <zephyr/arch/arc/v2/exception.h> 21 #elif defined(CONFIG_NIOS2) 22 #include <zephyr/arch/nios2/exception.h> 23 #elif defined(CONFIG_RISCV) 24 #include <zephyr/arch/riscv/exception.h> 25 #elif defined(CONFIG_XTENSA) 26 #include <zephyr/arch/xtensa/exception.h> 27 #elif defined(CONFIG_MIPS) 28 #include <zephyr/arch/mips/exception.h> 29 #elif defined(CONFIG_ARCH_POSIX) 30 #include <zephyr/arch/posix/exception.h> 31 #elif defined(CONFIG_SPARC) 32 #include <zephyr/arch/sparc/exception.h> 33 #endif 34 35 #endif /* ZEPHYR_INCLUDE_ARCH_EXCEPTION_H_ */ 36