Rev 319 | Rev 329 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 319 | Rev 324 | ||
---|---|---|---|
Line 55... | Line 55... | ||
55 | pri_t cpu_priority_read(void) |
55 | pri_t cpu_priority_read(void) |
56 | { |
56 | { |
57 | return cp0_status_read(); |
57 | return cp0_status_read(); |
58 | } |
58 | } |
59 | 59 | ||
60 | - | ||
61 | void interrupt(void) |
60 | void interrupt(void) |
62 | { |
61 | { |
63 | __u32 cause; |
62 | __u32 cause; |
64 | int i; |
63 | int i; |
65 | 64 | ||
Line 81... | Line 80... | ||
81 | case 5: /* IRQ3 */ |
80 | case 5: /* IRQ3 */ |
82 | case 6: /* IRQ4 */ |
81 | case 6: /* IRQ4 */ |
83 | panic("unhandled interrupt %d\n", i); |
82 | panic("unhandled interrupt %d\n", i); |
84 | break; |
83 | break; |
85 | case 7: /* Timer Interrupt */ |
84 | case 7: /* Timer Interrupt */ |
86 | cp0_compare_write(cp0_compare_value); /* clear timer interrupt */ |
85 | cp0_compare_write(cp0_count_read() + cp0_compare_value); /* clear timer interrupt */ |
87 | /* start counting over again */ |
86 | /* start counting over again */ |
88 | cp0_count_write(0); |
- | |
89 | clock(); |
87 | clock(); |
90 | break; |
88 | break; |
91 | } |
89 | } |
92 | } |
90 | } |
93 | } |
91 | } |