source: rtems/cpukit/rtems/src/part.c @ b2de426

5
Last change on this file since b2de426 was f05eeb2, checked in by Sebastian Huber <sebastian.huber@…>, on 04/19/16 at 11:39:00

score: Simplify _Objects_Initialize_information()

Remove unused supports_global parameter. Convert
_Objects_Initialize_information() to a macro to avoid use of
RTEMS_MULTIPROCESSING define for each caller.

  • Property mode set to 100644
File size: 1.6 KB
Line 
1/**
2 *  @file
3 *
4 *  @brief Partition Manager Initialization
5 *  @ingroup ClassicPart
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/system.h>
22#include <rtems/config.h>
23#include <rtems/sysinit.h>
24#include <rtems/rtems/status.h>
25#include <rtems/rtems/support.h>
26#include <rtems/rtems/partimpl.h>
27
28Objects_Information _Partition_Information;
29
30static void _Partition_Manager_initialization(void)
31{
32  _Objects_Initialize_information(
33    &_Partition_Information,     /* object information table */
34    OBJECTS_CLASSIC_API,         /* object API */
35    OBJECTS_RTEMS_PARTITIONS,    /* object class */
36    Configuration_RTEMS_API.maximum_partitions,
37                                 /* maximum objects of this class */
38    sizeof( Partition_Control ), /* size of this object's control block */
39    false,                       /* true if the name is a string */
40    RTEMS_MAXIMUM_NAME_LENGTH,   /* maximum length of an object name */
41    _Partition_MP_Send_extract_proxy  /* Proxy extraction support callout */
42  );
43
44  /*
45   *  Register the MP Process Packet routine.
46   */
47
48#if defined(RTEMS_MULTIPROCESSING)
49  _MPCI_Register_packet_processor(
50    MP_PACKET_PARTITION,
51    _Partition_MP_Process_packet
52  );
53#endif
54
55}
56
57RTEMS_SYSINIT_ITEM(
58  _Partition_Manager_initialization,
59  RTEMS_SYSINIT_CLASSIC_PARTITION,
60  RTEMS_SYSINIT_ORDER_MIDDLE
61);
Note: See TracBrowser for help on using the repository browser.