[rtems commit] confdefs.h: Fix workspace size if idle task is FP

Sebastian Huber sebh at rtems.org
Fri Dec 12 07:08:37 UTC 2014


Module:    rtems
Branch:    master
Commit:    3feb3727a4fd22c7b8432464e16cff3dd839be01
Changeset: http://git.rtems.org/rtems/commit/?id=3feb3727a4fd22c7b8432464e16cff3dd839be01

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec 12 08:07:49 2014 +0100

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 76cba05..595dac5 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.




More information about the vc mailing list