Rev 1288 | Rev 1609 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1288 | Rev 1480 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | #ifndef __ppc32_INTERRUPT_H__ |
29 | #ifndef __ppc32_INTERRUPT_H__ |
| 30 | #define __ppc32_INTERRUPT_H__ |
30 | #define __ppc32_INTERRUPT_H__ |
| 31 | 31 | ||
| 32 | #include <arch/exception.h> |
32 | #include <arch/exception.h> |
| 33 | 33 | ||
| 34 | #define IRQ_COUNT 1 |
34 | #define IRQ_COUNT 64 |
| - | 35 | ||
| - | 36 | ||
| 35 | #define IVT_ITEMS 15 |
37 | #define IVT_ITEMS (16 + IRQ_COUNT) |
| 36 | #define INT_OFFSET 0 |
38 | #define INT_OFFSET 16 |
| - | 39 | ||
| - | 40 | #define int_register(it, name, handler) exc_register(((it)+INT_OFFSET),name,handler) |
|
| 37 | 41 | ||
| 38 | #define VECTOR_DECREMENTER 10 |
42 | #define VECTOR_DECREMENTER 10 |
| 39 | 43 | ||
| 40 | extern void start_decrementer(void); |
44 | extern void start_decrementer(void); |
| 41 | extern void interrupt_init(void); |
45 | extern void interrupt_init(void); |
| - | 46 | extern void extint_handler(int n, istate_t *istate); |
|
| 42 | 47 | ||
| 43 | #endif |
48 | #endif |