[rtems commit] score: Fix MPCI workspace size estimate

Sebastian Huber sebh at rtems.org
Tue Mar 29 11:44:00 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 29 11:57:40 2016 +0200

score: Fix MPCI workspace size estimate

Account for the global objects table.

---

 cpukit/sapi/include/confdefs.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index e0b2a80..2018c4e 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -2964,8 +2964,17 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
  * This is an internal parameter.
  */
 #ifdef CONFIGURE_MP_APPLICATION
+  #define CONFIGURE_OBJECT_GLOBAL_TABLE_SIZE(_max) \
+    _Configure_From_workspace( \
+      (CONFIGURE_MP_MAXIMUM_NODES + 1) * sizeof(Chain_Control) \
+    )
+
   #define CONFIGURE_MEMORY_FOR_MP \
     (CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
+     CONFIGURE_OBJECT_GLOBAL_TABLE_SIZE(CONFIGURE_TASKS) + \
+     CONFIGURE_OBJECT_GLOBAL_TABLE_SIZE(CONFIGURE_MAXIMUM_PARTITIONS) + \
+     CONFIGURE_OBJECT_GLOBAL_TABLE_SIZE(CONFIGURE_SEMAPHORES) + \
+     CONFIGURE_OBJECT_GLOBAL_TABLE_SIZE(CONFIGURE_MAXIMUM_MESSAGE_QUEUES) + \
      CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS))
 #else
   #define CONFIGURE_MEMORY_FOR_MP  0



More information about the vc mailing list