pussuw commented on code in PR #5993:
URL: https://github.com/apache/incubator-nuttx/pull/5993#discussion_r844226143


##########
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:
   Yes, only the boot hart should do this, but there is no logic for selecting 
one yet. Need to fix this later if/when SMP is supported.



-- 
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]

Reply via email to