or1k: properly restore timer

Consider the function parameter for restoring the timer
This commit is contained in:
Stefan Roesch 2016-03-10 17:51:55 +01:00 committed by Corinna Vinschen
parent 81ad4e656a
commit 414c8adc8b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}