From f362c3ceb4227d96532f24d7d20f215e2c488ec6 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 6 Feb 2010 12:35:51 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1570 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/ports/GCC/ARMCM3/chcore.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'os') diff --git a/os/ports/GCC/ARMCM3/chcore.h b/os/ports/GCC/ARMCM3/chcore.h index ffcb59b2a..c1b9591e0 100644 --- a/os/ports/GCC/ARMCM3/chcore.h +++ b/os/ports/GCC/ARMCM3/chcore.h @@ -167,17 +167,18 @@ struct context { /** * The default idle thread implementation requires no extra stack space in - * this port. + * this port but it is set to 4 because the idle thread does have a stack + * frame when compiling without optimizations. */ #ifndef IDLE_THREAD_STACK_SIZE -#define IDLE_THREAD_STACK_SIZE 0 +#define IDLE_THREAD_STACK_SIZE 4 #endif /** * This port requires no extra stack space for interrupt handling. */ #ifndef INT_REQUIRED_STACK -#define INT_REQUIRED_STACK 0 +#define INT_REQUIRED_STACK 0 #endif /** -- cgit v1.2.3