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:
Xiang Xiao
2020-10-23 11:47:51 +08:00
committed by Masayuki Ishikawa
parent efee1c6ded
commit 625eef20f0
16 changed files with 23 additions and 71 deletions
+1 -4
View File
@@ -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