source: rtems/cpukit/rtems/src/part.c @ 07fdc9c2

4.104.115
Last change on this file since 07fdc9c2 was 1095ec1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/18/05 at 09:03:45

Include config.h.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 *  Partition Manager
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#if HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <rtems/system.h>
20#include <rtems/rtems/status.h>
21#include <rtems/rtems/support.h>
22#include <rtems/score/address.h>
23#include <rtems/score/object.h>
24#include <rtems/rtems/part.h>
25#include <rtems/score/thread.h>
26#include <rtems/score/sysstate.h>
27
28/*PAGE
29 *
30 *  _Partition_Manager_initialization
31 *
32 *  This routine initializes all partition manager related
33 *  data structures.
34 *
35 *  Input parameters:
36 *    maximum_partitions - number of partitions to initialize
37 *
38 *  Output parameters:  NONE
39 */
40
41void _Partition_Manager_initialization(
42  uint32_t   maximum_partitions
43)
44{
45  _Objects_Initialize_information(
46    &_Partition_Information,     /* object information table */
47    OBJECTS_CLASSIC_API,         /* object API */
48    OBJECTS_RTEMS_PARTITIONS,    /* object class */
49    maximum_partitions,          /* maximum objects of this class */
50    sizeof( Partition_Control ), /* size of this object's control block */
51    FALSE,                       /* TRUE if the name is a string */
52    RTEMS_MAXIMUM_NAME_LENGTH    /* maximum length of an object name */
53#if defined(RTEMS_MULTIPROCESSING)
54    ,
55    TRUE,                        /* TRUE if this is a global object class */
56    _Partition_MP_Send_extract_proxy  /* Proxy extraction support callout */
57#endif
58  );
59
60  /*
61   *  Register the MP Process Packet routine.
62   */
63
64#if defined(RTEMS_MULTIPROCESSING)
65  _MPCI_Register_packet_processor(
66    MP_PACKET_PARTITION,
67    _Partition_MP_Process_packet
68  );
69#endif
70
71}
Note: See TracBrowser for help on using the repository browser.