From 21275b58a5a69c3c838082ffc8a7a3641f32ea9a Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 22 Nov 2018 19:14:51 +0100 Subject: score: Static Objects_Information initialization Statically allocate the objects information together with the initial set of objects either via . Provide default object informations with zero objects via librtemscpu.a. This greatly simplifies the workspace size estimate. RTEMS applications which do not use the unlimited objects option are easier to debug since all objects reside now in statically allocated objects of the right types. Close #3621. --- cpukit/score/src/threadmp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpukit/score/src/threadmp.c') diff --git a/cpukit/score/src/threadmp.c b/cpukit/score/src/threadmp.c index 4868e8fe4e..006d0f5bcf 100644 --- a/cpukit/score/src/threadmp.c +++ b/cpukit/score/src/threadmp.c @@ -54,8 +54,7 @@ void _Thread_MP_Handler_initialization ( return; } - proxy_size = sizeof( Thread_Proxy_control ) - + THREAD_QUEUE_HEADS_SIZE( _Scheduler_Count ); + 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 ); -- cgit v1.2.3