source: rtems/cpukit/rtems/src/region.c @ 70669f28

4.104.114.84.95
Last change on this file since 70669f28 was 70669f28, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/07 at 20:07:47

2007-05-11 Joel Sherrill <joel.sherrill@…>

  • rtems/src/region.c, sapi/src/exinit.c: Now that the Region is an optional manager, we cannot depend on it do initialize the internal Allocator Mutex. This was always a questionable place to do it, so this is a cleanup.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/*
2 *  Region 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/object.h>
23#include <rtems/rtems/options.h>
24#include <rtems/rtems/region.h>
25#include <rtems/score/states.h>
26#include <rtems/score/thread.h>
27#include <rtems/score/apimutex.h>
28
29/*PAGE
30 *
31 *  _Region_Manager_initialization
32 *
33 *  This routine initializes all region manager related data structures.
34 *
35 *  Input parameters:
36 *    maximum_regions - number of regions to initialize
37 *
38 *  Output parameters:  NONE
39 */
40
41void _Region_Manager_initialization(
42  uint32_t   maximum_regions
43)
44{
45  _Objects_Initialize_information(
46    &_Region_Information,      /* object information table */
47    OBJECTS_CLASSIC_API,       /* object API */
48    OBJECTS_RTEMS_REGIONS,     /* object class */
49    maximum_regions,           /* maximum objects of this class */
50    sizeof( Region_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    FALSE,                     /* TRUE if this is a global object class */
56    NULL                       /* 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_REGION,
67    0  /* XXX _Region_MP_Process_packet */
68  );
69#endif
70
71}
Note: See TracBrowser for help on using the repository browser.