diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-12 08:50:40 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-13 08:35:21 +0100 |
commit | 3fba9de2e6306946c7d79a571e787fb1d91faf38 (patch) | |
tree | be20fd3d9e509d44d53bccaf82d45ed54880f1b0 /cpukit/score | |
parent | config: Statically allocate MP thread proxies (diff) | |
download | rtems-3fba9de2e6306946c7d79a571e787fb1d91faf38.tar.bz2 |
config: Statically allocate MP object controls
Update #3735.
Diffstat (limited to 'cpukit/score')
-rw-r--r-- | cpukit/score/src/mpcidefault.c | 3 | ||||
-rw-r--r-- | cpukit/score/src/objectmp.c | 7 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/score/src/mpcidefault.c b/cpukit/score/src/mpcidefault.c index beb3221564..fad806c5c1 100644 --- a/cpukit/score/src/mpcidefault.c +++ b/cpukit/score/src/mpcidefault.c @@ -19,9 +19,12 @@ #endif #include <rtems/score/mpci.h> +#include <rtems/score/objectdata.h> #include <rtems/score/stack.h> #include <rtems/score/thread.h> +Objects_MP_Control _Objects_MP_Controls[ 0 ]; + Thread_Configured_proxy_control * const _Thread_MP_Proxies; const MPCI_Configuration _MPCI_Configuration = { diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index 1910b8ccba..cad1413c33 100644 --- a/cpukit/score/src/objectmp.c +++ b/cpukit/score/src/objectmp.c @@ -21,7 +21,6 @@ #include <rtems/score/objectimpl.h> #include <rtems/score/interr.h> #include <rtems/score/isrlock.h> -#include <rtems/score/wkspace.h> #include <rtems/config.h> #define OBJECTS_MP_CONTROL_OF_ID_LOOKUP_NODE( node ) \ @@ -185,11 +184,9 @@ void _Objects_MP_Handler_initialization( void ) _Chain_Initialize( &_Objects_MP_Inactive_global_objects, - _Workspace_Allocate_or_fatal_error( - maximum_global_objects * sizeof( Objects_MP_Control ) - ), + &_Objects_MP_Controls[ 0 ], maximum_global_objects, - sizeof( Objects_MP_Control ) + sizeof( _Objects_MP_Controls[ 0 ] ) ); } |