Changeset 9863dbf in rtems
- Timestamp:
- 08/18/95 21:42:58 (28 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 0f592fba
- Parents:
- 95fbca1
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/rtems/src/dpmem.c
r95fbca1 r9863dbf 38 38 _Objects_Initialize_information( 39 39 &_Dual_ported_memory_Information, 40 OBJECTS_RTEMS_PORTS, 40 41 FALSE, 41 42 maximum_ports, -
c/src/exec/rtems/src/msg.c
r95fbca1 r9863dbf 46 46 _Objects_Initialize_information( 47 47 &_Message_queue_Information, 48 OBJECTS_RTEMS_MESSAGE_QUEUES, 48 49 TRUE, 49 50 maximum_message_queues, … … 286 287 the_message_queue->Object.id, 287 288 0, /* Not used */ 288 MPCI_DEFAULT_TIMEOUT289 0 289 290 ); 290 291 } -
c/src/exec/rtems/src/part.c
r95fbca1 r9863dbf 40 40 _Objects_Initialize_information( 41 41 &_Partition_Information, 42 OBJECTS_RTEMS_PARTITIONS, 42 43 TRUE, 43 44 maximum_partitions, -
c/src/exec/rtems/src/ratemon.c
r95fbca1 r9863dbf 42 42 _Objects_Initialize_information( 43 43 &_Rate_monotonic_Information, 44 OBJECTS_RTEMS_PERIODS, 44 45 FALSE, 45 46 maximum_periods, -
c/src/exec/rtems/src/region.c
r95fbca1 r9863dbf 40 40 _Objects_Initialize_information( 41 41 &_Region_Information, 42 OBJECTS_RTEMS_REGIONS, 42 43 FALSE, 43 44 maximum_regions, -
c/src/exec/rtems/src/rtemstimer.c
r95fbca1 r9863dbf 39 39 _Objects_Initialize_information( 40 40 &_Timer_Information, 41 OBJECTS_RTEMS_TIMERS, 41 42 FALSE, 42 43 maximum_timers, -
c/src/exec/rtems/src/sem.c
r95fbca1 r9863dbf 57 57 _Objects_Initialize_information( 58 58 &_Semaphore_Information, 59 OBJECTS_RTEMS_SEMAPHORES, 59 60 TRUE, 60 61 maximum_semaphores, -
c/src/exec/rtems/src/tasks.c
r95fbca1 r9863dbf 144 144 } 145 145 146 the_thread->name = name;147 146 the_thread->attribute_set = the_attribute_set; 148 147 the_thread->current_state = STATES_DORMANT; -
c/src/exec/rtems/src/timer.c
r95fbca1 r9863dbf 39 39 _Objects_Initialize_information( 40 40 &_Timer_Information, 41 OBJECTS_RTEMS_TIMERS, 41 42 FALSE, 42 43 maximum_timers, -
c/src/exec/sapi/src/extension.c
r95fbca1 r9863dbf 37 37 _Objects_Initialize_information( 38 38 &_Extension_Information, 39 OBJECTS_RTEMS_EXTENSIONS, 39 40 FALSE, 40 41 maximum_extensions, -
c/src/exec/score/src/object.c
r95fbca1 r9863dbf 52 52 * 53 53 * Input parameters: 54 * information - object class 54 * information - object information table 55 * the_class - object class 55 56 * supports_global - TRUE if this is a global object class 56 57 * maximum - maximum objects of this class … … 62 63 void _Objects_Initialize_information( 63 64 Objects_Information *information, 64 boolean supports_global, 65 unsigned32 maximum, 66 unsigned32 size 65 Objects_Classes the_class, 66 boolean supports_global, 67 unsigned32 maximum, 68 unsigned32 size 67 69 ) 68 70 { … … 71 73 Objects_Control *the_object; 72 74 73 information->maximum = maximum; 75 information->maximum = maximum; 76 information->the_class = the_class; 74 77 75 78 if ( maximum == 0 ) minimum_index = 0; … … 77 80 78 81 information->minimum_id = 79 _Objects_Build_id( _Objects_Local_node, minimum_index );82 _Objects_Build_id( the_class, _Objects_Local_node, minimum_index ); 80 83 81 84 information->maximum_id = 82 _Objects_Build_id( _Objects_Local_node, maximum );85 _Objects_Build_id( the_class, _Objects_Local_node, maximum ); 83 86 84 87 information->local_table = _Workspace_Allocate_or_fatal_error( … … 111 114 index <= maximum ; 112 115 index++ ) { 113 the_object->id = _Objects_Build_id( _Objects_Local_node, index ); 116 the_object->id = 117 _Objects_Build_id( the_class, _Objects_Local_node, index ); 114 118 the_object = (Objects_Control *) the_object->Node.next; 115 119 } … … 173 177 ) 174 178 if ( name == names[ index ] ) { 175 *id = _Objects_Build_id( _Objects_Local_node, index ); 179 *id = _Objects_Build_id( 180 information->the_class, 181 _Objects_Local_node, 182 index 183 ); 176 184 return( RTEMS_SUCCESSFUL ); 177 185 } … … 214 222 215 223 index = id - information->minimum_id; 224 216 225 if ( information->maximum >= index ) { 217 226 _Thread_Disable_dispatch(); … … 274 283 do { 275 284 /* walked off end of list? */ 276 if ( next_id > information->maximum_id)285 if (rtems_get_index(next_id) > information->maximum) 277 286 { 278 287 *location_p = OBJECTS_ERROR; -
c/src/exec/score/src/thread.c
r95fbca1 r9863dbf 60 60 _Objects_Initialize_information( 61 61 &_Thread_Information, 62 OBJECTS_RTEMS_TASKS, 62 63 TRUE, 63 64 maximum_tasks, -
c/src/lib/libmisc/monitor/mon-object.c
r95fbca1 r9863dbf 121 121 #if 0 122 122 /* XXX Uncomment this when types are added to id's */ 123 if (rtems_get_ type(id) != RTEMS_OBJECT_INVALID)124 type = rtems_get_ type(id);123 if (rtems_get_class(id) != OBJECTS_NO_CLASS) 124 type = rtems_get_class(id); 125 125 126 126 id = _Objects_Build_id(type, default_node, rtems_get_index(id)); 127 127 #else 128 id = _Objects_Build_id(default_node, rtems_get_index(id)); 128 #warning "TONY... FIX ME!!!!!" 129 #if defined(hppa1_1) 130 #error "TONY... I SAID TO FIX ME!!!!! <HAHAHAHAHA>" 131 #endif 132 id = _Objects_Build_id(0, default_node, rtems_get_index(id)); 129 133 #endif 130 134 } -
c/src/libmisc/monitor/mon-object.c
r95fbca1 r9863dbf 121 121 #if 0 122 122 /* XXX Uncomment this when types are added to id's */ 123 if (rtems_get_ type(id) != RTEMS_OBJECT_INVALID)124 type = rtems_get_ type(id);123 if (rtems_get_class(id) != OBJECTS_NO_CLASS) 124 type = rtems_get_class(id); 125 125 126 126 id = _Objects_Build_id(type, default_node, rtems_get_index(id)); 127 127 #else 128 id = _Objects_Build_id(default_node, rtems_get_index(id)); 128 #warning "TONY... FIX ME!!!!!" 129 #if defined(hppa1_1) 130 #error "TONY... I SAID TO FIX ME!!!!! <HAHAHAHAHA>" 131 #endif 132 id = _Objects_Build_id(0, default_node, rtems_get_index(id)); 129 133 #endif 130 134 } -
cpukit/libmisc/monitor/mon-object.c
r95fbca1 r9863dbf 121 121 #if 0 122 122 /* XXX Uncomment this when types are added to id's */ 123 if (rtems_get_ type(id) != RTEMS_OBJECT_INVALID)124 type = rtems_get_ type(id);123 if (rtems_get_class(id) != OBJECTS_NO_CLASS) 124 type = rtems_get_class(id); 125 125 126 126 id = _Objects_Build_id(type, default_node, rtems_get_index(id)); 127 127 #else 128 id = _Objects_Build_id(default_node, rtems_get_index(id)); 128 #warning "TONY... FIX ME!!!!!" 129 #if defined(hppa1_1) 130 #error "TONY... I SAID TO FIX ME!!!!! <HAHAHAHAHA>" 131 #endif 132 id = _Objects_Build_id(0, default_node, rtems_get_index(id)); 129 133 #endif 130 134 } -
cpukit/rtems/src/dpmem.c
r95fbca1 r9863dbf 38 38 _Objects_Initialize_information( 39 39 &_Dual_ported_memory_Information, 40 OBJECTS_RTEMS_PORTS, 40 41 FALSE, 41 42 maximum_ports, -
cpukit/rtems/src/msg.c
r95fbca1 r9863dbf 46 46 _Objects_Initialize_information( 47 47 &_Message_queue_Information, 48 OBJECTS_RTEMS_MESSAGE_QUEUES, 48 49 TRUE, 49 50 maximum_message_queues, … … 286 287 the_message_queue->Object.id, 287 288 0, /* Not used */ 288 MPCI_DEFAULT_TIMEOUT289 0 289 290 ); 290 291 } -
cpukit/rtems/src/part.c
r95fbca1 r9863dbf 40 40 _Objects_Initialize_information( 41 41 &_Partition_Information, 42 OBJECTS_RTEMS_PARTITIONS, 42 43 TRUE, 43 44 maximum_partitions, -
cpukit/rtems/src/ratemon.c
r95fbca1 r9863dbf 42 42 _Objects_Initialize_information( 43 43 &_Rate_monotonic_Information, 44 OBJECTS_RTEMS_PERIODS, 44 45 FALSE, 45 46 maximum_periods, -
cpukit/rtems/src/region.c
r95fbca1 r9863dbf 40 40 _Objects_Initialize_information( 41 41 &_Region_Information, 42 OBJECTS_RTEMS_REGIONS, 42 43 FALSE, 43 44 maximum_regions, -
cpukit/rtems/src/rtemstimer.c
r95fbca1 r9863dbf 39 39 _Objects_Initialize_information( 40 40 &_Timer_Information, 41 OBJECTS_RTEMS_TIMERS, 41 42 FALSE, 42 43 maximum_timers, -
cpukit/rtems/src/sem.c
r95fbca1 r9863dbf 57 57 _Objects_Initialize_information( 58 58 &_Semaphore_Information, 59 OBJECTS_RTEMS_SEMAPHORES, 59 60 TRUE, 60 61 maximum_semaphores, -
cpukit/rtems/src/tasks.c
r95fbca1 r9863dbf 144 144 } 145 145 146 the_thread->name = name;147 146 the_thread->attribute_set = the_attribute_set; 148 147 the_thread->current_state = STATES_DORMANT; -
cpukit/sapi/src/extension.c
r95fbca1 r9863dbf 37 37 _Objects_Initialize_information( 38 38 &_Extension_Information, 39 OBJECTS_RTEMS_EXTENSIONS, 39 40 FALSE, 40 41 maximum_extensions, -
cpukit/score/src/object.c
r95fbca1 r9863dbf 52 52 * 53 53 * Input parameters: 54 * information - object class 54 * information - object information table 55 * the_class - object class 55 56 * supports_global - TRUE if this is a global object class 56 57 * maximum - maximum objects of this class … … 62 63 void _Objects_Initialize_information( 63 64 Objects_Information *information, 64 boolean supports_global, 65 unsigned32 maximum, 66 unsigned32 size 65 Objects_Classes the_class, 66 boolean supports_global, 67 unsigned32 maximum, 68 unsigned32 size 67 69 ) 68 70 { … … 71 73 Objects_Control *the_object; 72 74 73 information->maximum = maximum; 75 information->maximum = maximum; 76 information->the_class = the_class; 74 77 75 78 if ( maximum == 0 ) minimum_index = 0; … … 77 80 78 81 information->minimum_id = 79 _Objects_Build_id( _Objects_Local_node, minimum_index );82 _Objects_Build_id( the_class, _Objects_Local_node, minimum_index ); 80 83 81 84 information->maximum_id = 82 _Objects_Build_id( _Objects_Local_node, maximum );85 _Objects_Build_id( the_class, _Objects_Local_node, maximum ); 83 86 84 87 information->local_table = _Workspace_Allocate_or_fatal_error( … … 111 114 index <= maximum ; 112 115 index++ ) { 113 the_object->id = _Objects_Build_id( _Objects_Local_node, index ); 116 the_object->id = 117 _Objects_Build_id( the_class, _Objects_Local_node, index ); 114 118 the_object = (Objects_Control *) the_object->Node.next; 115 119 } … … 173 177 ) 174 178 if ( name == names[ index ] ) { 175 *id = _Objects_Build_id( _Objects_Local_node, index ); 179 *id = _Objects_Build_id( 180 information->the_class, 181 _Objects_Local_node, 182 index 183 ); 176 184 return( RTEMS_SUCCESSFUL ); 177 185 } … … 214 222 215 223 index = id - information->minimum_id; 224 216 225 if ( information->maximum >= index ) { 217 226 _Thread_Disable_dispatch(); … … 274 283 do { 275 284 /* walked off end of list? */ 276 if ( next_id > information->maximum_id)285 if (rtems_get_index(next_id) > information->maximum) 277 286 { 278 287 *location_p = OBJECTS_ERROR; -
cpukit/score/src/thread.c
r95fbca1 r9863dbf 60 60 _Objects_Initialize_information( 61 61 &_Thread_Information, 62 OBJECTS_RTEMS_TASKS, 62 63 TRUE, 63 64 maximum_tasks,
Note: See TracChangeset
for help on using the changeset viewer.