diff options
Diffstat (limited to 'cpukit/rtems/src/sem.c')
-rw-r--r-- | cpukit/rtems/src/sem.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/cpukit/rtems/src/sem.c b/cpukit/rtems/src/sem.c index 7612c82e8b..13615eb8bd 100644 --- a/cpukit/rtems/src/sem.c +++ b/cpukit/rtems/src/sem.c @@ -20,19 +20,16 @@ #include <rtems/system.h> #include <rtems/config.h> +#include <rtems/sysinit.h> #include <rtems/rtems/status.h> #include <rtems/rtems/support.h> #include <rtems/rtems/attrimpl.h> -#include <rtems/score/isr.h> #include <rtems/rtems/options.h> #include <rtems/rtems/semimpl.h> -#include <rtems/score/coremuteximpl.h> -#include <rtems/score/coresemimpl.h> -#include <rtems/score/thread.h> -#include <rtems/score/interr.h> +Objects_Information _Semaphore_Information; -void _Semaphore_Manager_initialization(void) +static void _Semaphore_Manager_initialization(void) { _Objects_Initialize_information( &_Semaphore_Information, /* object information table */ @@ -62,3 +59,9 @@ void _Semaphore_Manager_initialization(void) #endif } + +RTEMS_SYSINIT_ITEM( + _Semaphore_Manager_initialization, + RTEMS_SYSINIT_CLASSIC_SEMAPHORE, + RTEMS_SYSINIT_ORDER_MIDDLE +); |