Skip to content

Commit 476cdfd

Browse files
roestefanwallento
authored andcommitted
or1k: properly restore timer
Consider the function parameter for restoring the timer
1 parent 64ea894 commit 476cdfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libgloss/or1k/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void
140140
or1k_timer_restore(uint32_t sr_tee)
141141
{
142142
uint32_t sr = or1k_mfspr(OR1K_SPR_SYS_SR_ADDR);
143-
sr = OR1K_SPR_SYS_SR_TEE_SET(sr, 1);
143+
sr = OR1K_SPR_SYS_SR_TEE_SET(sr, sr_tee);
144144
or1k_mtspr(OR1K_SPR_SYS_SR_ADDR, sr);
145145
}
146146

0 commit comments

Comments
 (0)