You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/13 09:42:02 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6060: MPFS: Fix timer and exception/fault handling

pkarashchenko commented on code in PR #6060:
URL: https://github.com/apache/incubator-nuttx/pull/6060#discussion_r849288899


##########
arch/risc-v/src/mpfs/mpfs_timerisr.c:
##########
@@ -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, (uint64_t *)MPFS_CLINT_MTIMECMP0 + hart_id,

Review Comment:
   As an alternative:
   ```suggestion
       MPFS_CLINT_MTIME, MPFS_CLINT_MTIMECMP0 + 8 * hart_id,
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org