MPFS: Fix mtimecmp address
MTIMECMP0 was incorrect
This commit is contained in:
parent
4b9c74514d
commit
2b29dec5e0
@ -67,7 +67,7 @@ void up_timer_initialize(void)
|
||||
uintptr_t hart_id = riscv_mhartid();
|
||||
|
||||
struct oneshot_lowerhalf_s *lower = riscv_mtimer_initialize(
|
||||
MPFS_CLINT_MTIME, MPFS_CLINT_MTIMECMP0 + hart_id,
|
||||
MPFS_CLINT_MTIME, MPFS_CLINT_MTIMECMP0 + hart_id * sizeof(uintptr_t),
|
||||
RISCV_IRQ_MTIMER, MTIMER_FREQ);
|
||||
|
||||
DEBUGASSERT(lower);
|
||||
|
Loading…
Reference in New Issue
Block a user