Bug fix in timer for or1k

- Properly set the interrupt pending flag in the timer mode register.

    * or1k/timer.c: Properly set interrupt flags
This commit is contained in:
Jeff Johnston 2015-05-26 15:25:13 -04:00 committed by Corinna Vinschen
parent b46d3b5536
commit 58e5719a0e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-05-26 Stefan Wallentowitz <stefan.wallentowitz@tum.de>
* or1k/timer.c: Properly set interrupt flags
2015-05-26 Stefan Wallentowitz <stefan.wallentowitz@tum.de>
* or1k/exception-asm.S: Store missing state

View File

@ -35,7 +35,7 @@ _or1k_timer_interrupt_handler(void)
uint32_t ttmr = or1k_mfspr(OR1K_SPR_TICK_TTMR_ADDR);
ttmr = OR1K_SPR_TICK_TTMR_IE_SET(ttmr, 1);
ttmr = OR1K_SPR_TICK_TTMR_MODE_SET(ttmr, OR1K_SPR_TICK_TTMR_MODE_RESTART);
ttmr = OR1K_SPR_TICK_TTMR_IE_SET(ttmr, 1);
ttmr = OR1K_SPR_TICK_TTMR_IP_SET(ttmr, 0);
or1k_mtspr(OR1K_SPR_TICK_TTMR_ADDR, ttmr);
}