Rev 590 | Rev 1096 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 590 | Rev 958 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | 31 | ||
32 | #ifndef __mips32_TYPES_H__ |
32 | #ifndef __mips32_TYPES_H__ |
33 | # include <arch/types.h> |
33 | # include <arch/types.h> |
34 | #endif |
34 | #endif |
35 | 35 | ||
- | 36 | #include <typedefs.h> |
|
- | 37 | ||
36 | #define EXC_Int 0 |
38 | #define EXC_Int 0 |
37 | #define EXC_Mod 1 |
39 | #define EXC_Mod 1 |
38 | #define EXC_TLBL 2 |
40 | #define EXC_TLBL 2 |
39 | #define EXC_TLBS 3 |
41 | #define EXC_TLBS 3 |
40 | #define EXC_AdEL 4 |
42 | #define EXC_AdEL 4 |
Line 50... | Line 52... | ||
50 | #define EXC_VCEI 14 |
52 | #define EXC_VCEI 14 |
51 | #define EXC_FPE 15 |
53 | #define EXC_FPE 15 |
52 | #define EXC_WATCH 23 |
54 | #define EXC_WATCH 23 |
53 | #define EXC_VCED 31 |
55 | #define EXC_VCED 31 |
54 | 56 | ||
55 | struct exception_regdump { |
57 | struct istate { |
56 | __u32 at; |
58 | __u32 at; |
57 | __u32 v0; |
59 | __u32 v0; |
58 | __u32 v1; |
60 | __u32 v1; |
59 | __u32 a0; |
61 | __u32 a0; |
60 | __u32 a1; |
62 | __u32 a1; |
Line 88... | Line 90... | ||
88 | 90 | ||
89 | __u32 status; /* cp0_status */ |
91 | __u32 status; /* cp0_status */ |
90 | __u32 epc; /* cp0_epc */ |
92 | __u32 epc; /* cp0_epc */ |
91 | }; |
93 | }; |
92 | 94 | ||
93 | extern void exception(struct exception_regdump *pstate); |
95 | extern void exception(istate_t *istate); |
94 | extern void tlb_refill_entry(void); |
96 | extern void tlb_refill_entry(void); |
95 | extern void exception_entry(void); |
97 | extern void exception_entry(void); |
96 | extern void cache_error_entry(void); |
98 | extern void cache_error_entry(void); |
97 | extern void exception_init(void); |
99 | extern void exception_init(void); |
98 | #endif |
100 | #endif |