source: rtems/cpukit/rtems/src/region.c @ 0c3edbf

4.11
Last change on this file since 0c3edbf was fe6c170c, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 24, 2013 at 2:19:52 PM

score: Create states implementation header

Move implementation specific parts of states.h and states.inl into new
header file statesimpl.h. The states.h contains now only the
application visible API.

  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 * @file
3 *
4 * @brief _Region_Manager_initialization
5 * @ingroup ClassicRegion Regions
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.com/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/rtems/status.h>
24#include <rtems/rtems/support.h>
25#include <rtems/score/object.h>
26#include <rtems/rtems/options.h>
27#include <rtems/rtems/regionimpl.h>
28#include <rtems/score/thread.h>
29#include <rtems/score/apimutex.h>
30
31/*
32 *  _Region_Manager_initialization
33 *
34 *  This routine initializes all region manager related data structures.
35 *
36 *  Input parameters:   NONE
37 *
38 *  Output parameters:  NONE
39 */
40
41void _Region_Manager_initialization(void)
42{
43  _Objects_Initialize_information(
44    &_Region_Information,      /* object information table */
45    OBJECTS_CLASSIC_API,       /* object API */
46    OBJECTS_RTEMS_REGIONS,     /* object class */
47    Configuration_RTEMS_API.maximum_regions,
48                               /* maximum objects of this class */
49    sizeof( Region_Control ),  /* size of this object's control block */
50    false,                     /* true if the name is a string */
51    RTEMS_MAXIMUM_NAME_LENGTH  /* maximum length of an object name */
52#if defined(RTEMS_MULTIPROCESSING)
53    ,
54    false,                     /* true if this is a global object class */
55    NULL                       /* Proxy extraction support callout */
56#endif
57  );
58
59  /*
60   *  Register the MP Process Packet routine.
61   */
62
63#if defined(RTEMS_MULTIPROCESSING)
64  _MPCI_Register_packet_processor(
65    MP_PACKET_REGION,
66    0  /* XXX _Region_MP_Process_packet */
67  );
68#endif
69
70}
Note: See TracBrowser for help on using the repository browser.