masayuki2009 commented on code in PR #7247:
URL: https://github.com/apache/incubator-nuttx/pull/7247#discussion_r988645979


##########
arch/risc-v/src/qemu-rv/qemu_rv_mm_init.c:
##########
@@ -252,9 +261,23 @@ void qemu_rv_kernel_mappings(void)
 
 void qemu_rv_mm_init(void)
 {
-  /* Setup the kernel mappings */
+#ifdef CONFIG_SMP
+  irqstate_t flags;
+  flags = spin_lock_irqsave(&g_mm_init_spin);

Review Comment:
   @xiaoxiang781216 
   I have other changes of qemu_rv_start.c for SMP which I was going to commit 
later, but I think I should add to this PR as well. And regarding 
initialization of `g_mm_init_spin`, it relies on BSS clearing but I can add the 
default value explicitly.



-- 
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-unsubscr...@nuttx.apache.org

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

Reply via email to