From 3feb3727a4fd22c7b8432464e16cff3dd839be01 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 12 Dec 2014 08:07:49 +0100 Subject: confdefs.h: Fix workspace size if idle task is FP --- cpukit/sapi/include/confdefs.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 76cba05655..595dac5807 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -2349,8 +2349,14 @@ const rtems_libio_helper rtems_fs_init_helper = * This defines the formula used to compute the amount of memory * reserved for IDLE task control structures. */ -#define CONFIGURE_MEMORY_FOR_IDLE_TASK \ - CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_IDLE_TASKS_COUNT, 0) +#if CPU_IDLE_TASK_IS_FP == TRUE + #define CONFIGURE_MEMORY_FOR_IDLE_TASK \ + CONFIGURE_MEMORY_FOR_TASKS( \ + CONFIGURE_IDLE_TASKS_COUNT, CONFIGURE_IDLE_TASKS_COUNT) +#else + #define CONFIGURE_MEMORY_FOR_IDLE_TASK \ + CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_IDLE_TASKS_COUNT, 0) +#endif /** * This macro accounts for general RTEMS system overhead. -- cgit v1.2.3