[4efe1955] | 1 | /** |
---|
| 2 | * @file |
---|
[ac7d5ef0] | 3 | * |
---|
[4efe1955] | 4 | * @brief _Region_Manager_initialization |
---|
| 5 | * @ingroup ClassicRegion Regions |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | /* |
---|
[db80f11] | 9 | * COPYRIGHT (c) 1989-2008. |
---|
[ac7d5ef0] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
| 11 | * |
---|
[98e4ebf5] | 12 | * The license and distribution terms for this file may be |
---|
| 13 | * found in the file LICENSE in this distribution or at |
---|
[277cc95] | 14 | * http://www.rtems.com/license/LICENSE. |
---|
[ac7d5ef0] | 15 | */ |
---|
| 16 | |
---|
[1095ec1] | 17 | #if HAVE_CONFIG_H |
---|
| 18 | #include "config.h" |
---|
| 19 | #endif |
---|
| 20 | |
---|
[ac7d5ef0] | 21 | #include <rtems/system.h> |
---|
[db80f11] | 22 | #include <rtems/config.h> |
---|
[3a4ae6c] | 23 | #include <rtems/rtems/status.h> |
---|
| 24 | #include <rtems/rtems/support.h> |
---|
| 25 | #include <rtems/rtems/options.h> |
---|
[f6c7c57d] | 26 | #include <rtems/rtems/regionimpl.h> |
---|
[5e9b32b] | 27 | #include <rtems/score/thread.h> |
---|
[90015e7f] | 28 | #include <rtems/score/apimutex.h> |
---|
[ac7d5ef0] | 29 | |
---|
[64adc13] | 30 | /* |
---|
[ac7d5ef0] | 31 | * _Region_Manager_initialization |
---|
| 32 | * |
---|
| 33 | * This routine initializes all region manager related data structures. |
---|
| 34 | * |
---|
[db80f11] | 35 | * Input parameters: NONE |
---|
[ac7d5ef0] | 36 | * |
---|
| 37 | * Output parameters: NONE |
---|
| 38 | */ |
---|
| 39 | |
---|
[db80f11] | 40 | void _Region_Manager_initialization(void) |
---|
[ac7d5ef0] | 41 | { |
---|
| 42 | _Objects_Initialize_information( |
---|
[90015e7f] | 43 | &_Region_Information, /* object information table */ |
---|
| 44 | OBJECTS_CLASSIC_API, /* object API */ |
---|
| 45 | OBJECTS_RTEMS_REGIONS, /* object class */ |
---|
[db80f11] | 46 | Configuration_RTEMS_API.maximum_regions, |
---|
| 47 | /* maximum objects of this class */ |
---|
[90015e7f] | 48 | sizeof( Region_Control ), /* size of this object's control block */ |
---|
[eaef4657] | 49 | false, /* true if the name is a string */ |
---|
[90015e7f] | 50 | RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */ |
---|
| 51 | #if defined(RTEMS_MULTIPROCESSING) |
---|
| 52 | , |
---|
[eaef4657] | 53 | false, /* true if this is a global object class */ |
---|
[90015e7f] | 54 | NULL /* Proxy extraction support callout */ |
---|
| 55 | #endif |
---|
[3235ad9] | 56 | ); |
---|
[3a4ae6c] | 57 | |
---|
| 58 | /* |
---|
| 59 | * Register the MP Process Packet routine. |
---|
| 60 | */ |
---|
| 61 | |
---|
[97e2729d] | 62 | #if defined(RTEMS_MULTIPROCESSING) |
---|
[3a4ae6c] | 63 | _MPCI_Register_packet_processor( |
---|
| 64 | MP_PACKET_REGION, |
---|
| 65 | 0 /* XXX _Region_MP_Process_packet */ |
---|
| 66 | ); |
---|
[97e2729d] | 67 | #endif |
---|
[3a4ae6c] | 68 | |
---|
[ac7d5ef0] | 69 | } |
---|