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:
parent
bfe1d471ce
commit
7794dc8821
@ -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 */
|
||||
|
||||
tcb->adj_stack_size = stack_size;
|
||||
tcb->adj_stack_size = 0;
|
||||
tcb->stack_alloc_ptr = NULL;
|
||||
tcb->adj_stack_ptr = NULL;
|
||||
return OK;
|
||||
|
Loading…
Reference in New Issue
Block a user