[ac7d5ef0] | 1 | /* |
---|
| 2 | * Region Manager |
---|
| 3 | * |
---|
| 4 | * |
---|
[60b791ad] | 5 | * COPYRIGHT (c) 1989-1998. |
---|
[ac7d5ef0] | 6 | * On-Line Applications Research Corporation (OAR). |
---|
[03f2154e] | 7 | * Copyright assigned to U.S. Government, 1994. |
---|
[ac7d5ef0] | 8 | * |
---|
[98e4ebf5] | 9 | * The license and distribution terms for this file may be |
---|
| 10 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 11 | * http://www.OARcorp.com/rtems/license.html. |
---|
[ac7d5ef0] | 12 | * |
---|
| 13 | * $Id$ |
---|
| 14 | */ |
---|
| 15 | |
---|
| 16 | #include <rtems/system.h> |
---|
[3a4ae6c] | 17 | #include <rtems/rtems/status.h> |
---|
[5e9b32b] | 18 | #include <rtems/score/object.h> |
---|
[3a4ae6c] | 19 | #include <rtems/rtems/options.h> |
---|
| 20 | #include <rtems/rtems/region.h> |
---|
[5e9b32b] | 21 | #include <rtems/score/states.h> |
---|
| 22 | #include <rtems/score/thread.h> |
---|
[3b76313] | 23 | #include <rtems/score/interr.h> |
---|
[ac7d5ef0] | 24 | |
---|
| 25 | void _Region_Manager_initialization( |
---|
| 26 | unsigned32 maximum_regions |
---|
| 27 | ) |
---|
| 28 | { |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | rtems_status_code rtems_region_create( |
---|
[3235ad9] | 32 | rtems_name name, |
---|
[ac7d5ef0] | 33 | void *starting_address, |
---|
| 34 | unsigned32 length, |
---|
| 35 | unsigned32 page_size, |
---|
| 36 | rtems_attribute attribute_set, |
---|
| 37 | Objects_Id *id |
---|
| 38 | ) |
---|
| 39 | { |
---|
[3b76313] | 40 | _Internal_error_Occurred( |
---|
| 41 | INTERNAL_ERROR_RTEMS_API, |
---|
| 42 | FALSE, |
---|
| 43 | RTEMS_NOT_CONFIGURED |
---|
| 44 | ); |
---|
[3a4ae6c] | 45 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 46 | } |
---|
| 47 | |
---|
| 48 | rtems_status_code rtems_region_ident( |
---|
[3235ad9] | 49 | rtems_name name, |
---|
[ac7d5ef0] | 50 | Objects_Id *id |
---|
| 51 | ) |
---|
| 52 | { |
---|
[3b76313] | 53 | _Internal_error_Occurred( |
---|
| 54 | INTERNAL_ERROR_RTEMS_API, |
---|
| 55 | FALSE, |
---|
| 56 | RTEMS_NOT_CONFIGURED |
---|
| 57 | ); |
---|
[3a4ae6c] | 58 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 59 | } |
---|
| 60 | |
---|
| 61 | rtems_status_code rtems_region_delete( |
---|
| 62 | Objects_Id id |
---|
| 63 | ) |
---|
| 64 | { |
---|
[3b76313] | 65 | _Internal_error_Occurred( |
---|
| 66 | INTERNAL_ERROR_RTEMS_API, |
---|
| 67 | FALSE, |
---|
| 68 | RTEMS_NOT_CONFIGURED |
---|
| 69 | ); |
---|
[3a4ae6c] | 70 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 71 | } |
---|
| 72 | |
---|
| 73 | rtems_status_code rtems_region_get_segment( |
---|
| 74 | Objects_Id id, |
---|
| 75 | unsigned32 size, |
---|
| 76 | rtems_option option_set, |
---|
| 77 | rtems_interval timeout, |
---|
| 78 | void **segment |
---|
| 79 | ) |
---|
| 80 | { |
---|
[3b76313] | 81 | _Internal_error_Occurred( |
---|
| 82 | INTERNAL_ERROR_RTEMS_API, |
---|
| 83 | FALSE, |
---|
| 84 | RTEMS_NOT_CONFIGURED |
---|
| 85 | ); |
---|
[3a4ae6c] | 86 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 87 | } |
---|
| 88 | |
---|
| 89 | rtems_status_code rtems_region_get_segment_size( |
---|
| 90 | Objects_Id id, |
---|
| 91 | void *segment, |
---|
| 92 | unsigned32 *size |
---|
| 93 | ) |
---|
| 94 | { |
---|
[3b76313] | 95 | _Internal_error_Occurred( |
---|
| 96 | INTERNAL_ERROR_RTEMS_API, |
---|
| 97 | FALSE, |
---|
| 98 | RTEMS_NOT_CONFIGURED |
---|
| 99 | ); |
---|
[3a4ae6c] | 100 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 101 | } |
---|
| 102 | |
---|
| 103 | rtems_status_code rtems_region_return_segment( |
---|
| 104 | Objects_Id id, |
---|
| 105 | void *segment |
---|
| 106 | ) |
---|
| 107 | { |
---|
[3b76313] | 108 | _Internal_error_Occurred( |
---|
| 109 | INTERNAL_ERROR_RTEMS_API, |
---|
| 110 | FALSE, |
---|
| 111 | RTEMS_NOT_CONFIGURED |
---|
| 112 | ); |
---|
[3a4ae6c] | 113 | return RTEMS_NOT_CONFIGURED; |
---|
[ac7d5ef0] | 114 | } |
---|