diff options
Diffstat (limited to 'cpukit/posix/src/semaphore.c')
-rw-r--r-- | cpukit/posix/src/semaphore.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/posix/src/semaphore.c b/cpukit/posix/src/semaphore.c index 5830373d3a..db3ae0c2b5 100644 --- a/cpukit/posix/src/semaphore.c +++ b/cpukit/posix/src/semaphore.c @@ -28,9 +28,12 @@ #include <rtems/system.h> #include <rtems/config.h> +#include <rtems/sysinit.h> #include <rtems/posix/semaphoreimpl.h> #include <rtems/seterr.h> +Objects_Information _POSIX_Semaphore_Information; + /* * _POSIX_Semaphore_Manager_initialization * @@ -41,7 +44,7 @@ * Output parameters: NONE */ -void _POSIX_Semaphore_Manager_initialization(void) +static void _POSIX_Semaphore_Manager_initialization(void) { _Objects_Initialize_information( &_POSIX_Semaphore_Information, /* object information table */ @@ -60,3 +63,9 @@ void _POSIX_Semaphore_Manager_initialization(void) #endif ); } + +RTEMS_SYSINIT_ITEM( + _POSIX_Semaphore_Manager_initialization, + RTEMS_SYSINIT_POSIX_SEMAPHORE, + RTEMS_SYSINIT_ORDER_MIDDLE +); |