Rev 1160 | Rev 1705 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1160 | Rev 1398 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #include <interrupt.h> |
29 | #include <interrupt.h> |
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 <print.h> |
34 | #include <ipc/sysipc.h> |
35 | 35 | ||
36 | 36 | ||
37 | void start_decrementer(void) |
37 | void start_decrementer(void) |
38 | { |
38 | { |
39 | asm volatile ( |
39 | asm volatile ( |
40 | "mtdec %0\n" |
40 | "mtdec %0\n" |
- | 41 | : |
|
41 | :: "r" (1000) |
42 | : "r" (1000) |
42 | ); |
43 | ); |
43 | } |
44 | } |
44 | 45 | ||
45 | 46 | ||
46 | static void exception_decrementer(int n, istate_t *istate) |
47 | static void exception_decrementer(int n, istate_t *istate) |
Line 53... | Line 54... | ||
53 | /* Initialize basic tables for exception dispatching */ |
54 | /* Initialize basic tables for exception dispatching */ |
54 | void interrupt_init(void) |
55 | void interrupt_init(void) |
55 | { |
56 | { |
56 | exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer); |
57 | exc_register(VECTOR_DECREMENTER, "timer", exception_decrementer); |
57 | } |
58 | } |
- | 59 | ||
- | 60 | ||
- | 61 | /* Reregister irq to be IPC-ready */ |
|
- | 62 | void irq_ipc_bind_arch(__native irq) |
|
- | 63 | { |
|
- | 64 | panic("not implemented\n"); |
|
- | 65 | /* TODO */ |
|
- | 66 | } |