Skip to content

Commit

Permalink
or1k: properly restore timer
Browse files Browse the repository at this point in the history
Consider the function parameter for restoring the timer
  • Loading branch information
roestefan authored and wallento committed Mar 10, 2016
1 parent 64ea894 commit 476cdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgloss/or1k/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 476cdfd

Please sign in to comment.