diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2015-05-26 22:25:13 +0300 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2015-05-26 22:25:13 +0300 |
commit | 67a2ed864a793ed574b465540cdaae6c5bf5e286 (patch) | |
tree | 391343658834f247bda786b4522a376a37e5f87f | |
parent | 40c0aa9cad73c4d87091f91da02d8a601caa0b68 (diff) |
Bug fix in timer for or1k
- Properly set the interrupt pending flag in the timer mode register.
* or1k/timer.c: Properly set interrupt flags
-rw-r--r-- | libgloss/ChangeLog | 4 | ||||
-rw-r--r-- | libgloss/or1k/timer.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 1dc57b6a5..77137f02b 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,5 +1,9 @@ 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 2015-05-26 Stefan Wallentowitz <stefan.wallentowitz@tum.de> diff --git a/libgloss/or1k/timer.c b/libgloss/or1k/timer.c index 27a24a1c1..08afa6034 100644 --- a/libgloss/or1k/timer.c +++ b/libgloss/or1k/timer.c @@ -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); } |