xiaoxiang781216 commented on a change in pull request #5618:
URL: https://github.com/apache/incubator-nuttx/pull/5618#discussion_r814815717



##########
File path: arch/arm/src/armv7-a/arm_cpuidlestack.c
##########
@@ -121,7 +122,7 @@ int up_cpu_idlestack(int cpu, FAR struct tcb_s *tcb, size_t 
stack_size)
   stack_alloc          = (uintptr_t)g_cpu_stackalloc[cpu];
   DEBUGASSERT(stack_alloc != 0 && STACK_ISALIGNED(stack_alloc));
 
-  tcb->adj_stack_size  = SMP_STACK_SIZE;
+  tcb->adj_stack_size  = SMP_STACK_SIZE - sizeof(struct tls_info_s);

Review comment:
       don't need, it is in the common code now:
   
https://github.com/apache/incubator-nuttx/blob/master/sched/init/nx_start.c#L583-L584




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