arch/sim: Set idle thread stack size to zero

To avoid ps generate "Segmentation fault" because do_stackcheck
check the stack color if the stack size doesn't equal zero
BTW, it is better to set idle task stack size to zero since idle
task use the host thread and the stack size from config isn't the
actual value.
This commit is contained in:
Xiang Xiao 2020-02-09 20:12:51 +08:00 committed by Gregory Nutt
parent bfe1d471ce
commit 7794dc8821

View File

@ -99,7 +99,7 @@ int up_cpu_idlestack(int cpu, FAR struct tcb_s *tcb, size_t stack_size)
{ {
/* REVISIT: I don't think anything is needed here */ /* REVISIT: I don't think anything is needed here */
tcb->adj_stack_size = stack_size; tcb->adj_stack_size = 0;
tcb->stack_alloc_ptr = NULL; tcb->stack_alloc_ptr = NULL;
tcb->adj_stack_ptr = NULL; tcb->adj_stack_ptr = NULL;
return OK; return OK;