Changeset 3b4413c0 in rtems


Ignore:
Timestamp:
Jul 6, 2000, 7:09:27 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
12aeaec6
Parents:
d895fe8
Message:

Directly index local table to avoid error check.

Files:
6 edited

Legend:

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

    rd895fe8 r3b4413c0  
    4545
    4646  if ( index && information->maximum >= index ) {
    47     the_object = _Objects_Get_local_object( information, index );
     47    the_object = information->local_table[ index ];
    4848    if ( the_object )
    4949      return NULL;
  • c/src/exec/score/src/objectget.c

    rd895fe8 r3b4413c0  
    5454  unsigned32       index;
    5555
    56   index = _Objects_Get_index( id );
     56  /* index = _Objects_Get_index( id ); */
     57  index = (unsigned16) id;
    5758
    5859  if ( information->maximum >= index ) {
    5960    _Thread_Disable_dispatch();
    60     if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) {
     61    if ( (the_object = information->local_table[ index ]) != NULL ) {
    6162      *location = OBJECTS_LOCAL;
    62       return( the_object );
     63      return the_object;
    6364    }
    6465    _Thread_Enable_dispatch();
    6566    *location = OBJECTS_ERROR;
    66     return( NULL );
     67    return NULL;
    6768  }
    6869  *location = OBJECTS_ERROR;
     70
    6971#if defined(RTEMS_MULTIPROCESSING)
    70   _Objects_MP_Is_remote(
    71     information,
    72     _Objects_Build_id( information->the_class, _Objects_Local_node, index ),
    73     location,
    74     &the_object
    75   );
     72  _Objects_MP_Is_remote( information, id, location, &the_object );
    7673  return the_object;
    7774#else
  • c/src/exec/score/src/objectgetbyindex.c

    rd895fe8 r3b4413c0  
    5555  if ( information->maximum >= index ) {
    5656    _Thread_Disable_dispatch();
    57     if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) {
     57    the_object = information->local_table[ index ];
     58    if ( the_object ) {
    5859      *location = OBJECTS_LOCAL;
    5960      return( the_object );
  • cpukit/score/src/objectallocatebyindex.c

    rd895fe8 r3b4413c0  
    4545
    4646  if ( index && information->maximum >= index ) {
    47     the_object = _Objects_Get_local_object( information, index );
     47    the_object = information->local_table[ index ];
    4848    if ( the_object )
    4949      return NULL;
  • cpukit/score/src/objectget.c

    rd895fe8 r3b4413c0  
    5454  unsigned32       index;
    5555
    56   index = _Objects_Get_index( id );
     56  /* index = _Objects_Get_index( id ); */
     57  index = (unsigned16) id;
    5758
    5859  if ( information->maximum >= index ) {
    5960    _Thread_Disable_dispatch();
    60     if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) {
     61    if ( (the_object = information->local_table[ index ]) != NULL ) {
    6162      *location = OBJECTS_LOCAL;
    62       return( the_object );
     63      return the_object;
    6364    }
    6465    _Thread_Enable_dispatch();
    6566    *location = OBJECTS_ERROR;
    66     return( NULL );
     67    return NULL;
    6768  }
    6869  *location = OBJECTS_ERROR;
     70
    6971#if defined(RTEMS_MULTIPROCESSING)
    70   _Objects_MP_Is_remote(
    71     information,
    72     _Objects_Build_id( information->the_class, _Objects_Local_node, index ),
    73     location,
    74     &the_object
    75   );
     72  _Objects_MP_Is_remote( information, id, location, &the_object );
    7673  return the_object;
    7774#else
  • cpukit/score/src/objectgetbyindex.c

    rd895fe8 r3b4413c0  
    5555  if ( information->maximum >= index ) {
    5656    _Thread_Disable_dispatch();
    57     if ( (the_object = _Objects_Get_local_object( information, index )) != NULL ) {
     57    the_object = information->local_table[ index ];
     58    if ( the_object ) {
    5859      *location = OBJECTS_LOCAL;
    5960      return( the_object );
Note: See TracChangeset for help on using the changeset viewer.