OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [rtems/] [src/] [region.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
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.OARcorp.com/rtems/license.html.
11
 *
12
 *  region.c,v 1.20 2002/07/01 22:32:31 joel Exp
13
 */
14
 
15
#include <rtems/system.h>
16
#include <rtems/rtems/status.h>
17
#include <rtems/rtems/support.h>
18
#include <rtems/score/object.h>
19
#include <rtems/rtems/options.h>
20
#include <rtems/rtems/region.h>
21
#include <rtems/score/states.h>
22
#include <rtems/score/thread.h>
23
#include <rtems/score/apimutex.h>
24
 
25
/*PAGE
26
 *
27
 *  _Region_Manager_initialization
28
 *
29
 *  This routine initializes all region manager related data structures.
30
 *
31
 *  Input parameters:
32
 *    maximum_regions - number of regions to initialize
33
 *
34
 *  Output parameters:  NONE
35
 */
36
 
37
void _Region_Manager_initialization(
38
  unsigned32 maximum_regions
39
)
40
{
41
  /* XXX move me */
42
  _API_Mutex_Initialization( 1 );
43
  _API_Mutex_Allocate( _RTEMS_Allocator_Mutex );
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
 
68
  );
69
#endif
70
 
71
}
72
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.