From d44932402ad99bfaeba3e3a6641e84595401df39 Mon Sep 17 00:00:00 2001 From: Louis Yung-Chieh Lo Date: Wed, 13 Nov 2013 12:30:00 -0800 Subject: [PATCH] Remove the printf prompt in idle task. A cprintf could increase 96+ bytes of stack usage and may overflow the stack of idle task, which is 256 bytes on stm32. BUG=chrome-os-partner:23982 BRANCH=nyan TEST=verified on nyan Change-Id: If96a1c51010116a2b4f3d67481ec0acc7bf78dd9 Signed-off-by: Louis Yung-Chieh Lo Reviewed-on: https://chromium-review.googlesource.com/176619 Reviewed-by: Vincent Palatin --- core/cortex-m/task.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/cortex-m/task.c b/core/cortex-m/task.c index 687572eabe..5ef72e64b0 100644 --- a/core/cortex-m/task.c +++ b/core/cortex-m/task.c @@ -64,13 +64,6 @@ extern int __task_start(int *task_stack_ready); /* Idle task. Executed when no tasks are ready to be scheduled. */ void __idle(void) { - /* - * Print when the idle task starts. This is the lowest priority task, - * so this only starts once all other tasks have gotten a chance to do - * their task inits and have gone to sleep. - */ - cprintf(CC_TASK, "[%T idle task started]\n"); - while (1) { /* * Wait for the next irq event. This stops the CPU clock