[rtems commit] score: Fix MPCI workspace size estimate

Sebastian Huber sebh at rtems.org
Tue Mar 29 11:43:51 UTC 2016


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

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

score: Fix MPCI workspace size estimate

Global objects are no real objects with an objects information
structure.

---

 cpukit/sapi/include/confdefs.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h
index 407fb1e..e0b2a80 100644
--- a/cpukit/sapi/include/confdefs.h
+++ b/cpukit/sapi/include/confdefs.h
@@ -1893,7 +1893,9 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
         #define CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS     32
       #endif
       #define CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(_global_objects) \
-        _Configure_Object_RAM((_global_objects), sizeof(Objects_MP_Control))
+        _Configure_From_workspace( \
+          (_global_objects) * sizeof(Objects_MP_Control) \
+        )
 
       #ifndef CONFIGURE_MP_MAXIMUM_PROXIES
         #define CONFIGURE_MP_MAXIMUM_PROXIES            32



More information about the vc mailing list