arch/risc-v/src/litex_ticked: Set initial tick count to known value.
The tick count should be manually set as there is no guarantee that the previous boot stage hasn't modified this count since reset.
This commit is contained in:
parent
b82717b9e6
commit
b60a8b216b
@ -81,6 +81,7 @@ void up_timer_initialize(void)
|
||||
|
||||
/* Set the timer period */
|
||||
|
||||
putreg32(TICK_COUNT, LITEX_TIMER0_LOAD);
|
||||
putreg32(TICK_COUNT, LITEX_TIMER0_RELOAD);
|
||||
|
||||
/* Attach timer interrupt handler */
|
||||
|
Loading…
Reference in New Issue
Block a user