Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2015-05-26 22:25:13 +0300
committerCorinna Vinschen <corinna@vinschen.de>2015-05-27 14:30:20 +0300
commit58e5719a0e448d0c5cd1b670d9a099655ecfa77c (patch)
treec6bf8e8f31aaac1a91afcc0bf5b7b9e37caaafc5 /libgloss/or1k
parentb46d3b55368878227752b040cd731ba95c02fe85 (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
Diffstat (limited to 'libgloss/or1k')
-rw-r--r--libgloss/or1k/timer.c2
1 files changed, 1 insertions, 1 deletions
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);
}