[PATCH 1/8] confdefs.h: Account for MPCI task stack

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Mar 24 14:57:40 UTC 2016


---
 cpukit/sapi/include/confdefs.h | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 89beb23..2366c7a 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1919,13 +1919,19 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
 
       #define CONFIGURE_MULTIPROCESSING_TABLE    &Multiprocessing_configuration
 
+      #define CONFIGURE_MPCI_TASKS 1
+
     #endif /* CONFIGURE_HAS_OWN_MULTIPROCESSING_TABLE */
 
   #else
 
     #define CONFIGURE_MULTIPROCESSING_TABLE    NULL
 
+    #define CONFIGURE_MPCI_TASKS 0
+
   #endif /* CONFIGURE_MP_APPLICATION */
+#else
+  #define CONFIGURE_MPCI_TASKS 0
 #endif /* RTEMS_MULTIPROCESSING */
 /**@}*/ /* end of Multiprocessing Configuration */
 
@@ -2066,7 +2072,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
    * This is an internal parameter.
    */
   #define CONFIGURE_TASKS \
-    (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS)
+    (CONFIGURE_MAXIMUM_TASKS + CONFIGURE_LIBBLOCK_TASKS + CONFIGURE_MPCI_TASKS)
 
   /**
    * This macro calculates the memory required for task variables.
@@ -2956,10 +2962,7 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
 #ifdef CONFIGURE_MP_APPLICATION
   #define CONFIGURE_MEMORY_FOR_MP \
     (CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
-     CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS( \
-             CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
-     CONFIGURE_MEMORY_FOR_TASKS(1, 1) \
-  )
+     CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS))
 #else
   #define CONFIGURE_MEMORY_FOR_MP  0
 #endif
-- 
1.8.4.5



More information about the devel mailing list