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:
Stuart Ianna 2024-09-19 23:34:17 +00:00 committed by Xiang Xiao
parent b82717b9e6
commit b60a8b216b

View File

@ -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 */