Changeset 1019ae4 in rtems
- Timestamp:
- Jan 8, 1997, 4:20:47 PM (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c6126e57
- Parents:
- 0d051533
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/mpci.c
r0d051533 r1019ae4 125 125 _MPCI_Receive_server_tcb, 126 126 THREAD_START_NUMERIC, 127 _MPCI_Receive_server,127 (void *) _MPCI_Receive_server, 128 128 NULL, 129 129 0 -
c/src/exec/score/src/object.c
r0d051533 r1019ae4 122 122 */ 123 123 124 information->local_table = _Workspace_Allocate_or_fatal_error( 125 (maximum + 1) * sizeof(Objects_Control *) 126 ); 124 information->local_table = 125 (Objects_Control **) _Workspace_Allocate_or_fatal_error( 126 (maximum + 1) * sizeof(Objects_Control *) 127 ); 127 128 128 129 /* … … 138 139 information->name_length = name_length; 139 140 140 name_area = _Workspace_Allocate_or_fatal_error( (maximum + 1) * name_length ); 141 name_area = (Objects_Name *) 142 _Workspace_Allocate_or_fatal_error( (maximum + 1) * name_length ); 141 143 information->name_table = name_area; 142 144 … … 184 186 if ( supports_global == TRUE && _System_state_Is_multiprocessing ) { 185 187 186 information->global_table = _Workspace_Allocate_or_fatal_error( 187 (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control) 188 ); 188 information->global_table = 189 (Chain_Control *) _Workspace_Allocate_or_fatal_error( 190 (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control) 191 ); 189 192 190 193 for ( index=1; index <= _Objects_Maximum_nodes ; index++ ) … … 209 212 unsigned32 index; 210 213 unsigned32 maximum = length / OBJECTS_NAME_ALIGNMENT; 211 unsigned32 *name_ptr = name;214 unsigned32 *name_ptr = (unsigned32 *) name; 212 215 213 216 for ( index=0 ; index < maximum ; index++ ) … … 227 230 ) 228 231 { 229 unsigned8 *source_p = source;230 unsigned8 *destination_p = destination;232 unsigned8 *source_p = (unsigned8 *) source; 233 unsigned8 *destination_p = (unsigned8 *) destination; 231 234 232 235 do { … … 248 251 ) 249 252 { 250 unsigned32 *source_p = source;251 unsigned32 *destination_p = destination;253 unsigned32 *source_p = (unsigned32 *) source; 254 unsigned32 *destination_p = (unsigned32 *) destination; 252 255 unsigned32 tmp_length = length / OBJECTS_NAME_ALIGNMENT; 253 256 … … 269 272 ) 270 273 { 271 unsigned8 *name_1_p = name_1;272 unsigned8 *name_2_p = name_2;274 unsigned8 *name_1_p = (unsigned8 *) name_1; 275 unsigned8 *name_2_p = (unsigned8 *) name_2; 273 276 unsigned32 tmp_length = length; 274 277 … … 296 299 ) 297 300 { 298 unsigned32 *name_1_p = name_1;299 unsigned32 *name_2_p = name_2;301 unsigned32 *name_1_p = (unsigned32 *) name_1; 302 unsigned32 *name_2_p = (unsigned32 *) name_2; 300 303 unsigned32 tmp_length = length / OBJECTS_NAME_ALIGNMENT; 301 304 -
c/src/exec/score/src/thread.c
r0d051533 r1019ae4 75 75 _Thread_Ticks_per_timeslice = ticks_per_timeslice; 76 76 77 _Thread_Ready_chain = _Workspace_Allocate_or_fatal_error(77 _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 78 78 (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) 79 79 ); … … 123 123 124 124 #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE) 125 idle = _CPU_Thread_Idle_body;125 idle = (void *) _CPU_Thread_Idle_body; 126 126 #else 127 idle = _Thread_Idle_body;127 idle = (void *) _Thread_Idle_body; 128 128 #endif 129 129 … … 504 504 extensions_area = NULL; 505 505 506 the_thread->extensions = extensions_area;506 the_thread->extensions = (void **) extensions_area; 507 507 508 508 /* … … 541 541 (void) _Workspace_Free( fp_area ); 542 542 543 _Thread_Stack_Free( the_thread ->Start.stack);543 _Thread_Stack_Free( the_thread ); 544 544 545 545 return FALSE; … … 568 568 if ( _States_Is_dormant( the_thread->current_state ) ) { 569 569 570 the_thread->Start.entry_point = entry_point;570 the_thread->Start.entry_point = (Thread_Entry) entry_point; 571 571 572 572 the_thread->Start.prototype = the_prototype; … … 1132 1132 switch ( executing->Start.prototype ) { 1133 1133 case THREAD_START_NUMERIC: 1134 (*executing->Start.entry_point)( executing->Start.numeric_argument ); 1134 (*(Thread_Entry_numeric) executing->Start.entry_point)( 1135 executing->Start.numeric_argument 1136 ); 1135 1137 break; 1136 1138 case THREAD_START_POINTER: 1137 (*executing->Start.entry_point)( executing->Start.pointer_argument ); 1139 (*(Thread_Entry_pointer) executing->Start.entry_point)( 1140 executing->Start.pointer_argument 1141 ); 1138 1142 break; 1139 1143 case THREAD_START_BOTH_POINTER_FIRST: 1140 (* executing->Start.entry_point)(1144 (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)( 1141 1145 executing->Start.pointer_argument, 1142 1146 executing->Start.numeric_argument … … 1144 1148 break; 1145 1149 case THREAD_START_BOTH_NUMERIC_FIRST: 1146 (* executing->Start.entry_point)(1150 (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)( 1147 1151 executing->Start.numeric_argument, 1148 1152 executing->Start.pointer_argument -
c/src/exec/score/src/threadmp.c
r0d051533 r1019ae4 133 133 ) { 134 134 135 the_thread = _Addresses_Subtract_offset(135 the_thread = (Thread_Control *) _Addresses_Subtract_offset( 136 136 proxy_node, 137 137 _Thread_MP_Proxy_Active_offset -
cpukit/score/src/mpci.c
r0d051533 r1019ae4 125 125 _MPCI_Receive_server_tcb, 126 126 THREAD_START_NUMERIC, 127 _MPCI_Receive_server,127 (void *) _MPCI_Receive_server, 128 128 NULL, 129 129 0 -
cpukit/score/src/object.c
r0d051533 r1019ae4 122 122 */ 123 123 124 information->local_table = _Workspace_Allocate_or_fatal_error( 125 (maximum + 1) * sizeof(Objects_Control *) 126 ); 124 information->local_table = 125 (Objects_Control **) _Workspace_Allocate_or_fatal_error( 126 (maximum + 1) * sizeof(Objects_Control *) 127 ); 127 128 128 129 /* … … 138 139 information->name_length = name_length; 139 140 140 name_area = _Workspace_Allocate_or_fatal_error( (maximum + 1) * name_length ); 141 name_area = (Objects_Name *) 142 _Workspace_Allocate_or_fatal_error( (maximum + 1) * name_length ); 141 143 information->name_table = name_area; 142 144 … … 184 186 if ( supports_global == TRUE && _System_state_Is_multiprocessing ) { 185 187 186 information->global_table = _Workspace_Allocate_or_fatal_error( 187 (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control) 188 ); 188 information->global_table = 189 (Chain_Control *) _Workspace_Allocate_or_fatal_error( 190 (_Objects_Maximum_nodes + 1) * sizeof(Chain_Control) 191 ); 189 192 190 193 for ( index=1; index <= _Objects_Maximum_nodes ; index++ ) … … 209 212 unsigned32 index; 210 213 unsigned32 maximum = length / OBJECTS_NAME_ALIGNMENT; 211 unsigned32 *name_ptr = name;214 unsigned32 *name_ptr = (unsigned32 *) name; 212 215 213 216 for ( index=0 ; index < maximum ; index++ ) … … 227 230 ) 228 231 { 229 unsigned8 *source_p = source;230 unsigned8 *destination_p = destination;232 unsigned8 *source_p = (unsigned8 *) source; 233 unsigned8 *destination_p = (unsigned8 *) destination; 231 234 232 235 do { … … 248 251 ) 249 252 { 250 unsigned32 *source_p = source;251 unsigned32 *destination_p = destination;253 unsigned32 *source_p = (unsigned32 *) source; 254 unsigned32 *destination_p = (unsigned32 *) destination; 252 255 unsigned32 tmp_length = length / OBJECTS_NAME_ALIGNMENT; 253 256 … … 269 272 ) 270 273 { 271 unsigned8 *name_1_p = name_1;272 unsigned8 *name_2_p = name_2;274 unsigned8 *name_1_p = (unsigned8 *) name_1; 275 unsigned8 *name_2_p = (unsigned8 *) name_2; 273 276 unsigned32 tmp_length = length; 274 277 … … 296 299 ) 297 300 { 298 unsigned32 *name_1_p = name_1;299 unsigned32 *name_2_p = name_2;301 unsigned32 *name_1_p = (unsigned32 *) name_1; 302 unsigned32 *name_2_p = (unsigned32 *) name_2; 300 303 unsigned32 tmp_length = length / OBJECTS_NAME_ALIGNMENT; 301 304 -
cpukit/score/src/thread.c
r0d051533 r1019ae4 75 75 _Thread_Ticks_per_timeslice = ticks_per_timeslice; 76 76 77 _Thread_Ready_chain = _Workspace_Allocate_or_fatal_error(77 _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error( 78 78 (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control) 79 79 ); … … 123 123 124 124 #if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE) 125 idle = _CPU_Thread_Idle_body;125 idle = (void *) _CPU_Thread_Idle_body; 126 126 #else 127 idle = _Thread_Idle_body;127 idle = (void *) _Thread_Idle_body; 128 128 #endif 129 129 … … 504 504 extensions_area = NULL; 505 505 506 the_thread->extensions = extensions_area;506 the_thread->extensions = (void **) extensions_area; 507 507 508 508 /* … … 541 541 (void) _Workspace_Free( fp_area ); 542 542 543 _Thread_Stack_Free( the_thread ->Start.stack);543 _Thread_Stack_Free( the_thread ); 544 544 545 545 return FALSE; … … 568 568 if ( _States_Is_dormant( the_thread->current_state ) ) { 569 569 570 the_thread->Start.entry_point = entry_point;570 the_thread->Start.entry_point = (Thread_Entry) entry_point; 571 571 572 572 the_thread->Start.prototype = the_prototype; … … 1132 1132 switch ( executing->Start.prototype ) { 1133 1133 case THREAD_START_NUMERIC: 1134 (*executing->Start.entry_point)( executing->Start.numeric_argument ); 1134 (*(Thread_Entry_numeric) executing->Start.entry_point)( 1135 executing->Start.numeric_argument 1136 ); 1135 1137 break; 1136 1138 case THREAD_START_POINTER: 1137 (*executing->Start.entry_point)( executing->Start.pointer_argument ); 1139 (*(Thread_Entry_pointer) executing->Start.entry_point)( 1140 executing->Start.pointer_argument 1141 ); 1138 1142 break; 1139 1143 case THREAD_START_BOTH_POINTER_FIRST: 1140 (* executing->Start.entry_point)(1144 (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)( 1141 1145 executing->Start.pointer_argument, 1142 1146 executing->Start.numeric_argument … … 1144 1148 break; 1145 1149 case THREAD_START_BOTH_NUMERIC_FIRST: 1146 (* executing->Start.entry_point)(1150 (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)( 1147 1151 executing->Start.numeric_argument, 1148 1152 executing->Start.pointer_argument -
cpukit/score/src/threadmp.c
r0d051533 r1019ae4 133 133 ) { 134 134 135 the_thread = _Addresses_Subtract_offset(135 the_thread = (Thread_Control *) _Addresses_Subtract_offset( 136 136 proxy_node, 137 137 _Thread_MP_Proxy_Active_offset
Note: See TracChangeset
for help on using the changeset viewer.