or1k: properly restore timer
Consider the function parameter for restoring the timer
This commit is contained in:
parent
81ad4e656a
commit
414c8adc8b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue