Rev 1888 | Rev 1955 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1888 | Rev 1936 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #ifndef KERN_mips32_INTERRUPT_H_ |
35 | #ifndef KERN_mips32_INTERRUPT_H_ |
| 36 | #define KERN_mips32_INTERRUPT_H_ |
36 | #define KERN_mips32_INTERRUPT_H_ |
| 37 | 37 | ||
| 38 | #include <arch/exception.h> |
38 | #include <arch/exception.h> |
| 39 | 39 | ||
| 40 | #define IVT_ITEMS 40 |
40 | #define IVT_ITEMS 32 |
| 41 | #define INT_OFFSET 32 |
41 | #define IVT_FIRST 0 |
| 42 | #define IRQ_COUNT 8 |
- | |
| 43 | 42 | ||
| 44 | #define int_register(it, name, handler) exc_register(((it)+INT_OFFSET),name,handler) |
- | |
| 45 | - | ||
| 46 | #define IRQ2 2 |
- | |
| 47 | #define IRQ3 3 |
- | |
| 48 | #define IRQ7 7 |
- | |
| 49 | - | ||
| 50 | #define TIMER_IRQ IRQ7 |
43 | extern function timer_fnc; |
| 51 | 44 | ||
| 52 | extern void interrupt_init(void); |
45 | extern void interrupt_init(void); |
| 53 | 46 | ||
| 54 | #endif |
47 | #endif |
| 55 | 48 | ||