mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
arch: Remove the special check for idle thread in up_use_stack
since the idle thread don't call up_use_stack anymore Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Masayuki Ishikawa
parent
efee1c6ded
commit
625eef20f0
@@ -95,10 +95,7 @@ int up_use_stack(struct tcb_s *tcb, void *stack, size_t stack_size)
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_STACK_COLORATION
|
||||
if (tcb->pid != 0)
|
||||
{
|
||||
memset(tcb->stack_alloc_ptr, 0xaa, stack_size);
|
||||
}
|
||||
memset(tcb->stack_alloc_ptr, 0xaa, stack_size);
|
||||
#endif
|
||||
|
||||
/* The Z80 uses a push-down stack: the stack grows toward lower
|
||||
|
||||
Reference in New Issue
Block a user