pussuw commented on code in PR #5993:
URL: https://github.com/apache/incubator-nuttx/pull/5993#discussion_r844262947
##########
arch/risc-v/src/mpfs/mpfs_start.c:
##########
@@ -169,6 +175,16 @@ void __mpfs_start(uint64_t mhartid)
mpfs_boardinitialize();
+#ifdef CONFIG_ARCH_USE_S_MODE
+ /* Initialize the per CPU areas */
+
+ if (mhartid != 0)
+ {
+ riscv_percpu_init();
Review Comment:
The check is correct, hart0 for us at least runs the bootloader. Also, hart0
does not have supervisor mode at all, or FPU, this is why we check for hart0 in
many places.
Need to somehow decide which hart 1-4 does the boot, and use that number
here. But that comes when / if SMP support is added.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]