source: rtems/cpukit/rtems/src/sem.c @ 66cb142

Last change on this file since 66cb142 was a65b02d, checked in by Sebastian Huber <sebastian.huber@…>, on May 30, 2016 at 10:21:55 AM

rtems: Remove superfluous includes

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 *  @file
3 *
4 *  @brief Semaphore Manager Initialization
5 *  @ingroup ClassicSem
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2008.
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
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/config.h>
22#include <rtems/sysinit.h>
23#include <rtems/rtems/semimpl.h>
24
25Objects_Information _Semaphore_Information;
26
27static void _Semaphore_Manager_initialization(void)
28{
29  _Objects_Initialize_information(
30    &_Semaphore_Information,     /* object information table */
31    OBJECTS_CLASSIC_API,         /* object API */
32    OBJECTS_RTEMS_SEMAPHORES,    /* object class */
33     Configuration_RTEMS_API.maximum_semaphores,
34                                 /* maximum objects of this class */
35    sizeof( Semaphore_Control ), /* size of this object's control block */
36    false,                       /* true if the name is a string */
37    RTEMS_MAXIMUM_NAME_LENGTH,   /* maximum length of an object name */
38    _Semaphore_MP_Send_extract_proxy /* Proxy extraction support callout */
39  );
40
41  /*
42   *  Register the MP Process Packet routine.
43   */
44
45#if defined(RTEMS_MULTIPROCESSING)
46  _MPCI_Register_packet_processor(
47    MP_PACKET_SEMAPHORE,
48    _Semaphore_MP_Process_packet
49  );
50#endif
51
52}
53
54RTEMS_SYSINIT_ITEM(
55  _Semaphore_Manager_initialization,
56  RTEMS_SYSINIT_CLASSIC_SEMAPHORE,
57  RTEMS_SYSINIT_ORDER_MIDDLE
58);
Note: See TracBrowser for help on using the repository browser.