Rev 2245 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2245 | Rev 2261 | ||
---|---|---|---|
Line 234... | Line 234... | ||
234 | spinlock_unlock(&irq->lock); |
234 | spinlock_unlock(&irq->lock); |
235 | //clock(); |
235 | //clock(); |
236 | puts(" "); |
236 | puts(" "); |
237 | spinlock_lock(&irq->lock); |
237 | spinlock_lock(&irq->lock); |
238 | 238 | ||
- | 239 | /* acknowledge tick */ |
|
- | 240 | *(uint32_t*) GXEMUL_RTC_ACK = 0; |
|
- | 241 | ||
239 | /* TODO what's that? * |
242 | /* TODO what's that? * |
240 | if (virtual_timer_fnc != NULL) |
243 | if (virtual_timer_fnc != NULL) |
241 | virtual_timer_fnc(); |
244 | virtual_timer_fnc(); |
242 | */ |
245 | */ |
243 | } |
246 | } |
Line 250... | Line 253... | ||
250 | irq_initialize(&gxemul_timer_irq); |
253 | irq_initialize(&gxemul_timer_irq); |
251 | gxemul_timer_irq.devno = device_assign_devno(); |
254 | gxemul_timer_irq.devno = device_assign_devno(); |
252 | gxemul_timer_irq.inr = GXEMUL_TIMER_IRQ; |
255 | gxemul_timer_irq.inr = GXEMUL_TIMER_IRQ; |
253 | gxemul_timer_irq.claim = gxemul_timer_claim; |
256 | gxemul_timer_irq.claim = gxemul_timer_claim; |
254 | gxemul_timer_irq.handler = gxemul_timer_irq_handler; |
257 | gxemul_timer_irq.handler = gxemul_timer_irq_handler; |
- | 258 | ||
255 | irq_register(&gxemul_timer_irq); |
259 | irq_register(&gxemul_timer_irq); |
256 | } |
260 | } |
257 | 261 | ||
258 | 262 | ||
259 | /** @} |
263 | /** @} |