MPFS: Set correct interrupt per mode (M-/S-mode) for mtimer

This commit is contained in:
Ville Juven 2022-04-14 09:22:57 +03:00 committed by Petro Karashchenko
parent a94b7b9cca
commit 47945e83b2

View File

@ -68,7 +68,7 @@ void up_timer_initialize(void)
struct oneshot_lowerhalf_s *lower = riscv_mtimer_initialize(
MPFS_CLINT_MTIME, MPFS_CLINT_MTIMECMP0 + hart_id * sizeof(uintptr_t),
RISCV_IRQ_MTIMER, MTIMER_FREQ);
RISCV_IRQ_TIMER, MTIMER_FREQ);
DEBUGASSERT(lower);