bigcat-2026 commented on code in PR #21986:
URL: https://github.com/apache/nuttx/pull/21986#discussion_r4706113296


##########
arch/xtensa/src/common/xtensa_initialstate.c:
##########
@@ -115,6 +115,14 @@ void up_initial_state(struct tcb_s *tcb)
 
       xtensa_stack_color(tcb->stack_alloc_ptr, 0);
 #endif /* CONFIG_STACK_COLORATION */
+
+#ifdef CONFIG_SMP
+      if (tcb->cpu != 0)

Review Comment:
   Fixed. Removed the if (tcb->cpu != 0) { goto init_regs; } block from the 
idle path in up_initial_state(), along with the now-unused init_regs label. The 
idle TCB now returns directly after stack setup/coloring, and the per-CPU idle 
register initialization remains in up_initial_state() from esp32s3_cpustart.c.



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