[bdf23b6c] | 1 | /** |
---|
| 2 | * @file |
---|
[8042961d] | 3 | * |
---|
[bdf23b6c] | 4 | * @brief RTEMS Barrier Manager Initialization |
---|
| 5 | * @ingroup ClassicBarrier Barriers |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | /* |
---|
| 9 | * COPYRIGHT (c) 1989-2015. |
---|
[8042961d] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
| 12 | * The license and distribution terms for this file may be |
---|
| 13 | * found in the file LICENSE in this distribution or at |
---|
[c499856] | 14 | * http://www.rtems.org/license/LICENSE. |
---|
[8042961d] | 15 | */ |
---|
| 16 | |
---|
| 17 | #if HAVE_CONFIG_H |
---|
| 18 | #include "config.h" |
---|
| 19 | #endif |
---|
| 20 | |
---|
| 21 | #include <rtems/system.h> |
---|
[db80f11] | 22 | #include <rtems/config.h> |
---|
[97d94ff] | 23 | #include <rtems/sysinit.h> |
---|
[8042961d] | 24 | #include <rtems/rtems/status.h> |
---|
| 25 | #include <rtems/rtems/support.h> |
---|
[0b32bb8] | 26 | #include <rtems/rtems/barrierimpl.h> |
---|
[8042961d] | 27 | |
---|
[97d94ff] | 28 | Objects_Information _Barrier_Information; |
---|
| 29 | |
---|
[8042961d] | 30 | /** |
---|
| 31 | * @brief _Barrier_Manager_initialization |
---|
| 32 | */ |
---|
[97d94ff] | 33 | static void _Barrier_Manager_initialization(void) |
---|
[8042961d] | 34 | { |
---|
| 35 | _Objects_Initialize_information( |
---|
| 36 | &_Barrier_Information, /* object information table */ |
---|
| 37 | OBJECTS_CLASSIC_API, /* object API */ |
---|
| 38 | OBJECTS_RTEMS_BARRIERS, /* object class */ |
---|
[db80f11] | 39 | Configuration_RTEMS_API.maximum_barriers, |
---|
| 40 | /* maximum objects of this class */ |
---|
[8042961d] | 41 | sizeof( Barrier_Control ), /* size of this object's control block */ |
---|
[eaef4657] | 42 | false, /* true if the name is a string */ |
---|
[f05eeb2] | 43 | RTEMS_MAXIMUM_NAME_LENGTH, /* maximum length of an object name */ |
---|
[8042961d] | 44 | NULL /* Proxy extraction support callout */ |
---|
| 45 | ); |
---|
| 46 | } |
---|
[97d94ff] | 47 | |
---|
| 48 | RTEMS_SYSINIT_ITEM( |
---|
| 49 | _Barrier_Manager_initialization, |
---|
| 50 | RTEMS_SYSINIT_CLASSIC_BARRIER, |
---|
| 51 | RTEMS_SYSINIT_ORDER_MIDDLE |
---|
| 52 | ); |
---|