summaryrefslogtreecommitdiffstats
path: root/libgloss
diff options
context:
space:
mode:
authorStefan Roesch <stefan.roesch@tum.de>2016-03-10 17:51:55 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-13 12:50:23 +0100
commit414c8adc8b77f7c453e3d88b2aa4489c34f72644 (patch)
tree48412e598d0fee6d8ebe4b372ecaf9e0aa2c3b30 /libgloss
parent81ad4e656a11c52e35ee72065012faf036c5140d (diff)
downloadcygnal-414c8adc8b77f7c453e3d88b2aa4489c34f72644.tar.gz
cygnal-414c8adc8b77f7c453e3d88b2aa4489c34f72644.tar.bz2
cygnal-414c8adc8b77f7c453e3d88b2aa4489c34f72644.zip
or1k: properly restore timer
Consider the function parameter for restoring the timer
Diffstat (limited to 'libgloss')
-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);
}