Rev 3228 | Rev 3913 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3228 | Rev 3906 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | lastcount = cp0_count_read(); |
98 | lastcount = cp0_count_read(); |
99 | nextcount = cp0_compare_value + cp0_count_read(); |
99 | nextcount = cp0_compare_value + cp0_count_read(); |
100 | cp0_compare_write(nextcount); |
100 | cp0_compare_write(nextcount); |
101 | } |
101 | } |
102 | 102 | ||
103 | static irq_ownership_t timer_claim(void) |
103 | static irq_ownership_t timer_claim(void *instance) |
104 | { |
104 | { |
105 | return IRQ_ACCEPT; |
105 | return IRQ_ACCEPT; |
106 | } |
106 | } |
107 | 107 | ||
108 | static void timer_irq_handler(irq_t *irq, void *arg, ...) |
108 | static void timer_irq_handler(irq_t *irq) |
109 | { |
109 | { |
110 | unsigned long drift; |
110 | unsigned long drift; |
111 | 111 | ||
112 | if (cp0_count_read() < lastcount) |
112 | if (cp0_count_read() < lastcount) |
113 | /* Count overflow detected */ |
113 | /* Count overflow detected */ |