From 47945e83b2c79666c4f93a658ec0cf4e585619c0 Mon Sep 17 00:00:00 2001 From: Ville Juven Date: Thu, 14 Apr 2022 09:22:57 +0300 Subject: [PATCH] MPFS: Set correct interrupt per mode (M-/S-mode) for mtimer --- arch/risc-v/src/mpfs/mpfs_timerisr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/mpfs/mpfs_timerisr.c b/arch/risc-v/src/mpfs/mpfs_timerisr.c index e2ae7a2158f..3a43fa278f1 100755 --- a/arch/risc-v/src/mpfs/mpfs_timerisr.c +++ b/arch/risc-v/src/mpfs/mpfs_timerisr.c @@ -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);