Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 1 | /* |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 2 | * Copyright 2004-2009 Analog Devices Inc. |
| 3 | * 2001 Lineo, Inc |
| 4 | * Tony Kou |
| 5 | * 1993 Hamish Macdonald |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 6 | * |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 7 | * Licensed under the GPL-2 |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 8 | */ |
| 9 | |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 10 | #ifndef _BFIN_TRAPS_H |
| 11 | #define _BFIN_TRAPS_H |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 12 | |
| 13 | #define VEC_SYS (0) |
| 14 | #define VEC_EXCPT01 (1) |
| 15 | #define VEC_EXCPT02 (2) |
| 16 | #define VEC_EXCPT03 (3) |
| 17 | #define VEC_EXCPT04 (4) |
| 18 | #define VEC_EXCPT05 (5) |
| 19 | #define VEC_EXCPT06 (6) |
| 20 | #define VEC_EXCPT07 (7) |
| 21 | #define VEC_EXCPT08 (8) |
| 22 | #define VEC_EXCPT09 (9) |
| 23 | #define VEC_EXCPT10 (10) |
| 24 | #define VEC_EXCPT11 (11) |
| 25 | #define VEC_EXCPT12 (12) |
| 26 | #define VEC_EXCPT13 (13) |
| 27 | #define VEC_EXCPT14 (14) |
| 28 | #define VEC_EXCPT15 (15) |
| 29 | #define VEC_STEP (16) |
| 30 | #define VEC_OVFLOW (17) |
| 31 | #define VEC_UNDEF_I (33) |
| 32 | #define VEC_ILGAL_I (34) |
| 33 | #define VEC_CPLB_VL (35) |
| 34 | #define VEC_MISALI_D (36) |
| 35 | #define VEC_UNCOV (37) |
| 36 | #define VEC_CPLB_M (38) |
| 37 | #define VEC_CPLB_MHIT (39) |
| 38 | #define VEC_WATCH (40) |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 39 | #define VEC_ISTRU_VL (41) /*ADSP-BF535 only (MH) */ |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 40 | #define VEC_MISALI_I (42) |
| 41 | #define VEC_CPLB_I_VL (43) |
| 42 | #define VEC_CPLB_I_M (44) |
| 43 | #define VEC_CPLB_I_MHIT (45) |
| 44 | #define VEC_ILL_RES (46) /* including unvalid supervisor mode insn */ |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 45 | /* The hardware reserves (63) for future use - we use it to tell our |
| 46 | * normal exception handling code we have a hardware error |
| 47 | */ |
| 48 | #define VEC_HWERR (63) |
Wolfgang Denk | 6cb142f | 2006-03-12 02:12:27 +0100 | [diff] [blame] | 49 | |
Mike Frysinger | dd97022 | 2010-01-29 15:48:28 -0500 | [diff] [blame] | 50 | #endif /* _BFIN_TRAPS_H */ |