Rev 578 | Rev 1258 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 578 | Rev 590 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | #ifndef __mips32_INTERRUPT_H__ |
29 | #ifndef __mips32_INTERRUPT_H__ |
| 30 | #define __mips32_INTERRUPT_H__ |
30 | #define __mips32_INTERRUPT_H__ |
| 31 | 31 | ||
| 32 | #include <arch/exception.h> |
32 | #include <arch/exception.h> |
| 33 | 33 | ||
| 34 | #define IVT_ITEMS 8 |
34 | #define IVT_ITEMS 40 |
| - | 35 | #define INT_OFFSET 32 |
|
| - | 36 | ||
| - | 37 | #define int_register(it, name, handler) exc_register(((it)+INT_OFFSET),name,handler) |
|
| 35 | 38 | ||
| 36 | #define IRQ2 2 |
39 | #define IRQ2 2 |
| 37 | #define IRQ3 3 |
40 | #define IRQ3 3 |
| 38 | #define IRQ7 7 |
41 | #define IRQ7 7 |
| 39 | 42 | ||
| 40 | #define TIMER_IRQ IRQ7 |
43 | #define TIMER_IRQ IRQ7 |
| 41 | 44 | ||
| 42 | extern void interrupt(struct exception_regdump *pstate); |
- | |
| 43 | extern void interrupt_init(void); |
45 | extern void interrupt_init(void); |
| 44 | 46 | ||
| 45 | #endif |
47 | #endif |