Changeset c64e4ed4 in rtems for cpukit/score/inline


Ignore:
Timestamp:
Jan 15, 1996, 9:50:28 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
a625ccd
Parents:
5c491aef
Message:

updates from Tony Bennett for PA and UNIX ports

Location:
cpukit/score/inline/rtems/score
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/address.inl

    r5c491aef rc64e4ed4  
    5959)
    6060{
    61   return (left - right);
     61  return ((char *) left - (char *) right);
    6262}
    6363
  • cpukit/score/inline/rtems/score/coremsg.inl

    r5c491aef rc64e4ed4  
    1818#define __CORE_MESSAGE_QUEUE_inl
    1919
     20#include <string.h>   /* needed for memcpy */
     21 
    2022/*PAGE
    2123 *
  • cpukit/score/inline/rtems/score/thread.inl

    r5c491aef rc64e4ed4  
    242242  Objects_Classes      the_class;
    243243  Objects_Information *information;
     244  Thread_Control      *tp = (Thread_Control *) 0;
    244245 
    245246  if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
    246247    _Thread_Disable_dispatch();
    247248    *location = OBJECTS_LOCAL;
    248     return( _Thread_Executing );
     249    tp = _Thread_Executing;
     250    goto done;
    249251  }
    250252 
     
    253255  if ( the_class > OBJECTS_CLASSES_LAST ) {
    254256    *location = OBJECTS_ERROR;
    255     return (Thread_Control *) 0;
     257    goto done;
    256258  }
    257259 
     
    260262  if ( !information || !information->is_thread ) {
    261263    *location = OBJECTS_ERROR;
    262     return (Thread_Control *) 0;
     264    goto done;
    263265  }
    264266 
    265   return (Thread_Control *) _Objects_Get( information, id, location );
    266 }
     267  tp = (Thread_Control *) _Objects_Get( information, id, location );
     268 
     269done:
     270  return tp;
     271}
     272
    267273
    268274/*
Note: See TracChangeset for help on using the changeset viewer.