Rev 1267 | Rev 1480 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1267 | Rev 1268 | ||
---|---|---|---|
Line 36... | Line 36... | ||
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 54... | Line 55... | ||
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 | } |
58 | 59 | ||
- | 60 | ||
59 | /* Reregister irq to be IPC-ready */ |
61 | /* Reregister irq to be IPC-ready */ |
60 | void irq_ipc_bind_arch(__native irq) |
62 | void irq_ipc_bind_arch(__native irq) |
61 | { |
63 | { |
62 | panic("not implemented\n"); |
64 | panic("not implemented\n"); |
63 | /* TODO */ |
65 | /* TODO */ |