summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadmp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-12 08:43:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-13 08:35:21 +0100
commit1d9f509e68a431d902cc655c85dc0601be4617b0 (patch)
tree34c7cb9da6d5a4f424d96e29fa2607e2ecd67a5a /cpukit/score/src/threadmp.c
parentconfig: Add _MPCI_Configuration (diff)
downloadrtems-1d9f509e68a431d902cc655c85dc0601be4617b0.tar.bz2
config: Statically allocate MP thread proxies
Update #3735.
Diffstat (limited to 'cpukit/score/src/threadmp.c')
-rw-r--r--cpukit/score/src/threadmp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/score/src/threadmp.c b/cpukit/score/src/threadmp.c
index e0c9da15e7..e60aeed893 100644
--- a/cpukit/score/src/threadmp.c
+++ b/cpukit/score/src/threadmp.c
@@ -21,7 +21,6 @@
#include <rtems/score/threadimpl.h>
#include <rtems/score/isrlock.h>
#include <rtems/score/schedulerimpl.h>
-#include <rtems/score/wkspace.h>
#include <string.h>
@@ -46,7 +45,6 @@ void _Thread_MP_Handler_initialization (
)
{
size_t proxy_size;
- size_t alloc_size;
char *proxies;
uint32_t i;
@@ -55,9 +53,7 @@ void _Thread_MP_Handler_initialization (
}
proxy_size = sizeof( Thread_Proxy_control ) + _Thread_queue_Heads_size;
- alloc_size = maximum_proxies * proxy_size;
- proxies = _Workspace_Allocate_or_fatal_error( alloc_size );
- memset( proxies, 0, alloc_size );
+ proxies = (char *) _Thread_MP_Proxies;
_Chain_Initialize(
&_Thread_MP_Inactive_proxies,