Rev 586 | Rev 1288 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 586 | Rev 664 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #ifndef __INTERRUPT_H__ |
29 | #ifndef __INTERRUPT_H__ |
30 | #define __INTERRUPT_H__ |
30 | #define __INTERRUPT_H__ |
31 | 31 | ||
32 | #include <arch/interrupt.h> |
32 | #include <arch/interrupt.h> |
- | 33 | #include <typedefs.h> |
|
33 | 34 | ||
34 | #ifndef IVT_ITEMS |
35 | #ifndef IVT_ITEMS |
35 | # define IVT_ITEMS 0 |
36 | # define IVT_ITEMS 0 |
36 | #endif |
37 | #endif |
37 | 38 | ||
- | 39 | #ifndef IVT_FIRST |
|
38 | typedef void (* iroutine)(int n, void *stack); |
40 | # define IVT_FIRST 0 |
- | 41 | #endif |
|
39 | 42 | ||
40 | extern iroutine exc_register(int n, const char *name, iroutine f); |
43 | extern iroutine exc_register(int n, const char *name, iroutine f); |
41 | extern void exc_dispatch(int n, void *stack); |
44 | extern void exc_dispatch(int n, void *stack); |
42 | void exc_init(void); |
45 | void exc_init(void); |
43 | 46 |