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/include/rtems/score/threadimpl.h | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'cpukit/include/rtems/score/threadimpl.h') diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h index 0e93cb501d..d3e69ed91c 100644 --- a/cpukit/include/rtems/score/threadimpl.h +++ b/cpukit/include/rtems/score/threadimpl.h @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -58,18 +57,6 @@ extern "C" { */ extern void *rtems_ada_self; -typedef struct { - Objects_Information Objects; - - Freechain_Control Free_thread_queue_heads; -} Thread_Information; - -/** - * The following defines the information control block used to - * manage this class of objects. - */ -extern Thread_Information _Thread_Internal_information; - /** * @brief Object identifier of the global constructor thread. * @@ -100,12 +87,7 @@ void _Thread_Iterate( void *arg ); -void _Thread_Initialize_information( - Thread_Information *information, - Objects_APIs the_api, - uint16_t the_class, - uint32_t maximum -); +void _Thread_Initialize_information( Thread_Information *information ); /** * @brief Initialize thread handler. @@ -828,7 +810,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Thread_Get_maximum_internal_threads(void) RTEMS_INLINE_ROUTINE Thread_Control *_Thread_Internal_allocate( void ) { return (Thread_Control *) - _Objects_Allocate_unprotected( &_Thread_Internal_information.Objects ); + _Objects_Allocate_unprotected( &_Thread_Information.Objects ); } /** -- cgit v1.2.3