1 /*
2  * Copyright (c) 2014 Wind River Systems, Inc.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file
9  * @brief ARCv2 public exception handling
10  *
11  * ARC-specific kernel exception handling interface. Included by arc/arch.h.
12  */
13 
14 #ifndef ZEPHYR_INCLUDE_ARCH_ARC_V2_EXCEPTION_H_
15 #define ZEPHYR_INCLUDE_ARCH_ARC_V2_EXCEPTION_H_
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 /* ARCv2 Exception vector numbers */
26 #define ARC_EV_RESET			0x0
27 #define ARC_EV_MEM_ERROR		0x1
28 #define ARC_EV_INS_ERROR		0x2
29 #define ARC_EV_MACHINE_CHECK		0x3
30 #define ARC_EV_TLB_MISS_I		0x4
31 #define ARC_EV_TLB_MISS_D		0x5
32 #define ARC_EV_PROT_V			0x6
33 #define ARC_EV_PRIVILEGE_V		0x7
34 #define ARC_EV_SWI			0x8
35 #define ARC_EV_TRAP			0x9
36 #define ARC_EV_EXTENSION		0xA
37 #define ARC_EV_DIV_ZERO			0xB
38 #define ARC_EV_DC_ERROR			0xC
39 #define ARC_EV_MISALIGNED		0xD
40 #define ARC_EV_VEC_UNIT			0xE
41 
42 #endif /* ZEPHYR_INCLUDE_ARCH_ARC_V2_EXCEPTION_H_ */
43