1 | /* |
---|
2 | * This file contains the raw entry points for the exceptions. |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2000. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.OARcorp.com/rtems/license.html. |
---|
10 | * |
---|
11 | * $Id$ |
---|
12 | */ |
---|
13 | |
---|
14 | #include <asm.h> |
---|
15 | #include "iregdef.h" |
---|
16 | #include "idtcpu.h" |
---|
17 | |
---|
18 | /* |
---|
19 | * MIPS ISA Level 1 entries |
---|
20 | */ |
---|
21 | |
---|
22 | #if __mips == 1 |
---|
23 | |
---|
24 | FRAME(exc_norm_code,sp,0,ra) |
---|
25 | la k0, _ISR_Handler /* generic external int hndlr */ |
---|
26 | j k0 |
---|
27 | nop |
---|
28 | ENDFRAME(exc_norm_code) |
---|
29 | |
---|
30 | FRAME(exc_dbg_code,sp,0,ra) |
---|
31 | la k0, _DBG_Handler /* debug interrupt */ |
---|
32 | j k0 |
---|
33 | nop |
---|
34 | ENDFRAME(exc_dbg_code) |
---|
35 | |
---|
36 | /* XXX this is dependent on IDT/SIM and needs to be addressed */ |
---|
37 | FRAME(exc_utlb_code,sp,0,ra) |
---|
38 | la k0, (R_VEC+((48)*8)) |
---|
39 | j k0 |
---|
40 | nop |
---|
41 | ENDFRAME(exc_tlb_code) |
---|
42 | |
---|
43 | /* |
---|
44 | * MIPS ISA Level 3 |
---|
45 | * XXX Again, reliance on SIM. Not good. |
---|
46 | */ |
---|
47 | #elif __mips == 3 |
---|
48 | |
---|
49 | FRAME(exc_tlb_code,sp,0,ra) |
---|
50 | la k0, (R_VEC+((112)*8)) /* R4000 Sim location */ |
---|
51 | j k0 |
---|
52 | nop |
---|
53 | ENDFRAME(exc_tlb_code) |
---|
54 | |
---|
55 | FRAME(exc_xtlb_code,sp,0,ra) |
---|
56 | la k0, (R_VEC+((112)*8)) /* R4000 Sim location */ |
---|
57 | j k0 |
---|
58 | nop |
---|
59 | |
---|
60 | ENDFRAME(exc_xtlb_code) |
---|
61 | |
---|
62 | FRAME(exc_cache_code,sp,0,ra) |
---|
63 | la k0, (R_VEC+((112)*8)) /* R4000 Sim location */ |
---|
64 | j k0 |
---|
65 | nop |
---|
66 | ENDFRAME(exc_cache_code) |
---|
67 | |
---|
68 | FRAME(exc_norm_code,sp,0,ra) |
---|
69 | la k0, _ISR_Handler /* generic external int hndlr */ |
---|
70 | j k0 |
---|
71 | nop |
---|
72 | ENDFRAME(exc_norm_code) |
---|
73 | |
---|
74 | #else |
---|
75 | |
---|
76 | #error "isr_entries.S: ISA support problem" |
---|
77 | |
---|
78 | #endif |
---|
79 | |
---|