From 6a1fcaf288b6baa1fde2ceb49e8fdeeebee61f91 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 21 Nov 2013 20:41:28 +0100 Subject: [PATCH] added a dedicated stacksize for float printfs --- cpu/lpc2387/include/cpu-conf.h | 3 ++- cpu/mc1322x/include/cpu-conf.h | 5 +++-- cpu/msp430-common/include/cpu-conf.h | 1 + cpu/native/include/cpu-conf.h | 14 ++++++++------ 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/cpu/lpc2387/include/cpu-conf.h b/cpu/lpc2387/include/cpu-conf.h index 9ae31d465865..b548f2772212 100644 --- a/cpu/lpc2387/include/cpu-conf.h +++ b/cpu/lpc2387/include/cpu-conf.h @@ -53,7 +53,8 @@ License. See the file LICENSE in the top level directory for more details. * @name Kernel configuration * @{ */ -#define KERNEL_CONF_STACKSIZE_PRINTF (4096) +#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (4096) +#define KERNEL_CONF_STACKSIZE_PRINTF (2048) #ifndef KERNEL_CONF_STACKSIZE_DEFAULT #define KERNEL_CONF_STACKSIZE_DEFAULT (512) diff --git a/cpu/mc1322x/include/cpu-conf.h b/cpu/mc1322x/include/cpu-conf.h index b1c6f5210d40..671562aff4ce 100644 --- a/cpu/mc1322x/include/cpu-conf.h +++ b/cpu/mc1322x/include/cpu-conf.h @@ -37,13 +37,14 @@ * @name Kernel configuration * @{ */ -#define KERNEL_CONF_STACKSIZE_PRINTF (4096) +#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (4096) +#define KERNEL_CONF_STACKSIZE_PRINTF (2048) #ifndef KERNEL_CONF_STACKSIZE_DEFAULT #define KERNEL_CONF_STACKSIZE_DEFAULT (512) #endif -#define KERNEL_CONF_STACKSIZE_IDLE 500 +#define KERNEL_CONF_STACKSIZE_IDLE (160) /** @} */ /** diff --git a/cpu/msp430-common/include/cpu-conf.h b/cpu/msp430-common/include/cpu-conf.h index f042302aad01..9a68e21a6218 100644 --- a/cpu/msp430-common/include/cpu-conf.h +++ b/cpu/msp430-common/include/cpu-conf.h @@ -18,6 +18,7 @@ License. See the file LICENSE in the top level directory for more details. * @{ */ #define KERNEL_CONF_STACKSIZE_PRINTF (256) +#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (KERNEL_CONF_STACKSIZE_PRINTF) #ifndef KERNEL_CONF_STACKSIZE_DEFAULT #define KERNEL_CONF_STACKSIZE_DEFAULT (256) diff --git a/cpu/native/include/cpu-conf.h b/cpu/native/include/cpu-conf.h index 60240c08bd53..e8a41eef4dc2 100644 --- a/cpu/native/include/cpu-conf.h +++ b/cpu/native/include/cpu-conf.h @@ -19,9 +19,10 @@ /* TODO: tighten stack sizes */ #ifdef __MACH__ /* OSX */ -#define KERNEL_CONF_STACKSIZE_DEFAULT (163840) -#define KERNEL_CONF_STACKSIZE_IDLE (163840) -#define KERNEL_CONF_STACKSIZE_PRINTF (163840) +#define KERNEL_CONF_STACKSIZE_DEFAULT (163840) +#define KERNEL_CONF_STACKSIZE_IDLE (163840) +#define KERNEL_CONF_STACKSIZE_PRINTF (163840) +#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (163840) /* for core/include/thread.h */ #define MINIMUM_STACK_SIZE (163840) /* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */ @@ -34,9 +35,10 @@ #define NATIVE_ISR_STACKSIZE (163840) #else /* Linux etc. */ -#define KERNEL_CONF_STACKSIZE_DEFAULT (8192) -#define KERNEL_CONF_STACKSIZE_IDLE (8192) -#define KERNEL_CONF_STACKSIZE_PRINTF (8192) +#define KERNEL_CONF_STACKSIZE_DEFAULT (8192) +#define KERNEL_CONF_STACKSIZE_IDLE (8192) +#define KERNEL_CONF_STACKSIZE_PRINTF (8192) +#define KERNEL_CONF_STACKSIZE_PRINTF_FLOAT (8192) /* for core/include/thread.h */ #define MINIMUM_STACK_SIZE (8192) /* undefine the TRANSCEIVER_STACK_SIZE (2048 or 512) defined in transceiver.h */