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:
authorStefan Roesch <stefan.roesch@tum.de>2016-03-10 19:51:55 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-03-13 14:50:23 +0300
commit414c8adc8b77f7c453e3d88b2aa4489c34f72644 (patch)
tree48412e598d0fee6d8ebe4b372ecaf9e0aa2c3b30 /libgloss/or1k
parent81ad4e656a11c52e35ee72065012faf036c5140d (diff)
or1k: properly restore timer
Consider the function parameter for restoring the timer
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 08afa6034..db45d3aad 100644
--- a/libgloss/or1k/timer.c
+++ b/libgloss/or1k/timer.c
@@ -140,7 +140,7 @@ void
or1k_timer_restore(uint32_t sr_tee)
{
uint32_t sr = or1k_mfspr(OR1K_SPR_SYS_SR_ADDR);
- sr = OR1K_SPR_SYS_SR_TEE_SET(sr, 1);
+ sr = OR1K_SPR_SYS_SR_TEE_SET(sr, sr_tee);
or1k_mtspr(OR1K_SPR_SYS_SR_ADDR, sr);
}