Rev 1268 | Rev 1595 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1268 | Rev 1480 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | #include <arch/interrupt.h> |
30 | #include <arch/interrupt.h> |
31 | #include <arch/types.h> |
31 | #include <arch/types.h> |
32 | #include <arch.h> |
32 | #include <arch.h> |
33 | #include <time/clock.h> |
33 | #include <time/clock.h> |
34 | #include <ipc/sysipc.h> |
34 | #include <ipc/sysipc.h> |
- | 35 | #include <arch/drivers/pic.h> |
|
35 | 36 | ||
36 | 37 | ||
37 | void start_decrementer(void) |
38 | void start_decrementer(void) |
38 | { |
39 | { |
39 | asm volatile ( |
40 | asm volatile ( |
Line 62... | Line 63... | ||
62 | void irq_ipc_bind_arch(__native irq) |
63 | void irq_ipc_bind_arch(__native irq) |
63 | { |
64 | { |
64 | panic("not implemented\n"); |
65 | panic("not implemented\n"); |
65 | /* TODO */ |
66 | /* TODO */ |
66 | } |
67 | } |
- | 68 | ||
- | 69 | #include <print.h> |
|
- | 70 | /** Handler of externul interrupts */ |
|
- | 71 | void extint_handler(int n, istate_t *istate) |
|
- | 72 | { |
|
- | 73 | int inum; |
|
- | 74 | ||
- | 75 | while ((inum = pic_get_pending()) != -1) { |
|
- | 76 | exc_dispatch(inum+INT_OFFSET, istate); |
|
- | 77 | pic_ack_interrupt(inum); |
|
- | 78 | } |
|
- | 79 | } |