mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user