From 414c8adc8b77f7c453e3d88b2aa4489c34f72644 Mon Sep 17 00:00:00 2001 From: Stefan Roesch Date: Thu, 10 Mar 2016 17:51:55 +0100 Subject: [PATCH] or1k: properly restore timer Consider the function parameter for restoring the timer --- libgloss/or1k/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.5