diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-12-14 15:05:47 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 10:00:53 +0100 |
commit | cbaac1f7f4b3d78673abfde9bd6ed7e43dddf12c (patch) | |
tree | 3aaafa8bebc23c6ae79f43a1d01fa927b2d66f8f /cpukit/rtems/src/sem.c | |
parent | Optional Classic Message Queue initialization (diff) | |
download | rtems-cbaac1f7f4b3d78673abfde9bd6ed7e43dddf12c.tar.bz2 |
Optional Classic Semaphore initialization
Update #2408.
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 +); |