summaryrefslogtreecommitdiff
path: root/bsp/AE210P/os_except.h
blob: 254a6dce51f69c801673810aba455f14bff9fc58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __OS_EXCEPT_H__
#define __OS_EXCEPT_H__

/***********************************
        TYPES OF GENERAL EXCEPTION
 ***********************************/
#define GE_ALIGN_CHECK                          0
#define GE_RESERVED_INST                        1
#define GE_TRAP                                 2
#define GE_ARITHMETIC                           3
#define GE_PRECISE_BUS_ERR                      4
#define GE_INPRECISE_BUS_ERR                    5
#define GE_COPROCESSOR                          6
#define GE_PRIVILEGE_INST                       7
#define GE_RESERVED_VALUE                       8
#define GE_NON_EXIST_LOCAL_MEM                  9
#define GE_MPZIU_CTRL                           10

void *General_Exception_Handler_Table[16];

inline void register_exception_handler(int genneral_except_num, void (*handler)(unsigned int ipc));

#endif