Changeset 1019ae4 in rtems


Ignore:
Timestamp:
Jan 8, 1997, 4:20:47 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c6126e57
Parents:
0d051533
Message:

added some casts to reduce warnings reported by users with Microtec C++
compiler.

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/src/mpci.c

    r0d051533 r1019ae4  
    125125    _MPCI_Receive_server_tcb,
    126126    THREAD_START_NUMERIC,
    127     _MPCI_Receive_server,
     127    (void *) _MPCI_Receive_server,
    128128    NULL,
    129129    0
  • c/src/exec/score/src/object.c

    r0d051533 r1019ae4  
    122122   */
    123123
    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    );
    127128
    128129  /*
     
    138139  information->name_length = name_length;
    139140
    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 );
    141143  information->name_table = name_area;
    142144
     
    184186  if ( supports_global == TRUE && _System_state_Is_multiprocessing ) {
    185187
    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      );
    189192
    190193    for ( index=1; index <= _Objects_Maximum_nodes ; index++ )
     
    209212  unsigned32  index;
    210213  unsigned32  maximum = length / OBJECTS_NAME_ALIGNMENT;
    211   unsigned32 *name_ptr = name;
     214  unsigned32 *name_ptr = (unsigned32 *) name;
    212215
    213216  for ( index=0 ; index < maximum ; index++ )
     
    227230)
    228231{
    229   unsigned8 *source_p = source;
    230   unsigned8 *destination_p = destination;
     232  unsigned8 *source_p = (unsigned8 *) source;
     233  unsigned8 *destination_p = (unsigned8 *) destination;
    231234 
    232235  do {
     
    248251)
    249252{
    250   unsigned32 *source_p = source;
    251   unsigned32 *destination_p = destination;
     253  unsigned32 *source_p = (unsigned32 *) source;
     254  unsigned32 *destination_p = (unsigned32 *) destination;
    252255  unsigned32  tmp_length = length / OBJECTS_NAME_ALIGNMENT;
    253256 
     
    269272)
    270273{
    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;
    273276  unsigned32 tmp_length = length;
    274277 
     
    296299)
    297300{
    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;
    300303  unsigned32  tmp_length = length / OBJECTS_NAME_ALIGNMENT;
    301304 
  • c/src/exec/score/src/thread.c

    r0d051533 r1019ae4  
    7575  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;
    7676
    77   _Thread_Ready_chain = _Workspace_Allocate_or_fatal_error(
     77  _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error(
    7878    (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
    7979  );
     
    123123 
    124124#if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
    125   idle = _CPU_Thread_Idle_body;
     125  idle = (void *) _CPU_Thread_Idle_body;
    126126#else
    127   idle = _Thread_Idle_body;
     127  idle = (void *) _Thread_Idle_body;
    128128#endif
    129129 
     
    504504    extensions_area = NULL;
    505505 
    506   the_thread->extensions = extensions_area;
     506  the_thread->extensions = (void **) extensions_area;
    507507
    508508  /*
     
    541541      (void) _Workspace_Free( fp_area );
    542542
    543     _Thread_Stack_Free( the_thread->Start.stack );
     543    _Thread_Stack_Free( the_thread );
    544544
    545545    return FALSE;
     
    568568  if ( _States_Is_dormant( the_thread->current_state ) ) {
    569569 
    570     the_thread->Start.entry_point      = entry_point;
     570    the_thread->Start.entry_point      = (Thread_Entry) entry_point;
    571571   
    572572    the_thread->Start.prototype        = the_prototype;
     
    11321132  switch ( executing->Start.prototype ) {
    11331133    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      );
    11351137      break;
    11361138    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      );
    11381142      break;
    11391143    case THREAD_START_BOTH_POINTER_FIRST:
    1140       (*executing->Start.entry_point)(
     1144      (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)(
    11411145        executing->Start.pointer_argument,
    11421146        executing->Start.numeric_argument
     
    11441148      break;
    11451149    case THREAD_START_BOTH_NUMERIC_FIRST:
    1146       (*executing->Start.entry_point)(
     1150      (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)(
    11471151        executing->Start.numeric_argument,
    11481152        executing->Start.pointer_argument
  • c/src/exec/score/src/threadmp.c

    r0d051533 r1019ae4  
    133133        ) {
    134134
    135       the_thread = _Addresses_Subtract_offset(
     135      the_thread = (Thread_Control *) _Addresses_Subtract_offset(
    136136                     proxy_node,
    137137                     _Thread_MP_Proxy_Active_offset
  • cpukit/score/src/mpci.c

    r0d051533 r1019ae4  
    125125    _MPCI_Receive_server_tcb,
    126126    THREAD_START_NUMERIC,
    127     _MPCI_Receive_server,
     127    (void *) _MPCI_Receive_server,
    128128    NULL,
    129129    0
  • cpukit/score/src/object.c

    r0d051533 r1019ae4  
    122122   */
    123123
    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    );
    127128
    128129  /*
     
    138139  information->name_length = name_length;
    139140
    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 );
    141143  information->name_table = name_area;
    142144
     
    184186  if ( supports_global == TRUE && _System_state_Is_multiprocessing ) {
    185187
    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      );
    189192
    190193    for ( index=1; index <= _Objects_Maximum_nodes ; index++ )
     
    209212  unsigned32  index;
    210213  unsigned32  maximum = length / OBJECTS_NAME_ALIGNMENT;
    211   unsigned32 *name_ptr = name;
     214  unsigned32 *name_ptr = (unsigned32 *) name;
    212215
    213216  for ( index=0 ; index < maximum ; index++ )
     
    227230)
    228231{
    229   unsigned8 *source_p = source;
    230   unsigned8 *destination_p = destination;
     232  unsigned8 *source_p = (unsigned8 *) source;
     233  unsigned8 *destination_p = (unsigned8 *) destination;
    231234 
    232235  do {
     
    248251)
    249252{
    250   unsigned32 *source_p = source;
    251   unsigned32 *destination_p = destination;
     253  unsigned32 *source_p = (unsigned32 *) source;
     254  unsigned32 *destination_p = (unsigned32 *) destination;
    252255  unsigned32  tmp_length = length / OBJECTS_NAME_ALIGNMENT;
    253256 
     
    269272)
    270273{
    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;
    273276  unsigned32 tmp_length = length;
    274277 
     
    296299)
    297300{
    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;
    300303  unsigned32  tmp_length = length / OBJECTS_NAME_ALIGNMENT;
    301304 
  • cpukit/score/src/thread.c

    r0d051533 r1019ae4  
    7575  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;
    7676
    77   _Thread_Ready_chain = _Workspace_Allocate_or_fatal_error(
     77  _Thread_Ready_chain = (Chain_Control *) _Workspace_Allocate_or_fatal_error(
    7878    (PRIORITY_MAXIMUM + 1) * sizeof(Chain_Control)
    7979  );
     
    123123 
    124124#if (CPU_PROVIDES_IDLE_THREAD_BODY == TRUE)
    125   idle = _CPU_Thread_Idle_body;
     125  idle = (void *) _CPU_Thread_Idle_body;
    126126#else
    127   idle = _Thread_Idle_body;
     127  idle = (void *) _Thread_Idle_body;
    128128#endif
    129129 
     
    504504    extensions_area = NULL;
    505505 
    506   the_thread->extensions = extensions_area;
     506  the_thread->extensions = (void **) extensions_area;
    507507
    508508  /*
     
    541541      (void) _Workspace_Free( fp_area );
    542542
    543     _Thread_Stack_Free( the_thread->Start.stack );
     543    _Thread_Stack_Free( the_thread );
    544544
    545545    return FALSE;
     
    568568  if ( _States_Is_dormant( the_thread->current_state ) ) {
    569569 
    570     the_thread->Start.entry_point      = entry_point;
     570    the_thread->Start.entry_point      = (Thread_Entry) entry_point;
    571571   
    572572    the_thread->Start.prototype        = the_prototype;
     
    11321132  switch ( executing->Start.prototype ) {
    11331133    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      );
    11351137      break;
    11361138    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      );
    11381142      break;
    11391143    case THREAD_START_BOTH_POINTER_FIRST:
    1140       (*executing->Start.entry_point)(
     1144      (*(Thread_Entry_both_pointer_first) executing->Start.entry_point)(
    11411145        executing->Start.pointer_argument,
    11421146        executing->Start.numeric_argument
     
    11441148      break;
    11451149    case THREAD_START_BOTH_NUMERIC_FIRST:
    1146       (*executing->Start.entry_point)(
     1150      (*(Thread_Entry_both_numeric_first) executing->Start.entry_point)(
    11471151        executing->Start.numeric_argument,
    11481152        executing->Start.pointer_argument
  • cpukit/score/src/threadmp.c

    r0d051533 r1019ae4  
    133133        ) {
    134134
    135       the_thread = _Addresses_Subtract_offset(
     135      the_thread = (Thread_Control *) _Addresses_Subtract_offset(
    136136                     proxy_node,
    137137                     _Thread_MP_Proxy_Active_offset
Note: See TracChangeset for help on using the changeset viewer.