Changeset 8932955 in rtems


Ignore:
Timestamp:
Feb 4, 2008, 5:16:37 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
60735a30
Parents:
b8c28e8
Message:

2008-02-04 Joel Sherrill <joel.sherrill@…>

  • rtems/src/rtemsobjectsetname.c, score/src/objectgetinfoid.c, score/src/objectgetnameasstring.c, score/src/objectidtoname.c: Handle Object Id of SELF.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rb8c28e8 r8932955  
     12008-02-04      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * rtems/src/rtemsobjectsetname.c, score/src/objectgetinfoid.c,
     4        score/src/objectgetnameasstring.c, score/src/objectidtoname.c: Handle
     5        Object Id of SELF.
     6
    172008-01-31      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/rtems/src/rtemsobjectsetname.c

    rb8c28e8 r8932955  
    3535  Objects_Locations    location;
    3636  Objects_Control     *the_object;
     37  Objects_Id           tmpId;
    3738
    3839  if ( !name )
    3940    return RTEMS_INVALID_ADDRESS;
    4041
    41   information  = _Objects_Get_information_id( id );
     42  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
     43
     44  information  = _Objects_Get_information_id( tmpId );
    4245  if ( !information )
    4346    return RTEMS_INVALID_ID;
    4447 
    45   the_object = _Objects_Get( information, id, &location );
     48  the_object = _Objects_Get( information, tmpId, &location );
    4649  switch ( location ) {
    4750
  • cpukit/score/src/objectgetinfoid.c

    rb8c28e8 r8932955  
    1616#include <rtems/system.h>
    1717#include <rtems/score/object.h>
     18#include <rtems/score/thread.h>
    1819
    1920Objects_Information *_Objects_Get_information_id(
  • cpukit/score/src/objectgetnameasstring.c

    rb8c28e8 r8932955  
    4242  Objects_Control       *the_object;
    4343  Objects_Locations      location;
     44  Objects_Id             tmpId;
    4445
    4546  if ( length == 0 )
     
    4950    return NULL;
    5051
    51   information = _Objects_Get_information_id( id );
     52  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
     53
     54  information = _Objects_Get_information_id( tmpId );
    5255  if ( !information )
    5356    return NULL;
    5457
    55   the_object = _Objects_Get( information, id, &location );
     58  the_object = _Objects_Get( information, tmpId, &location );
    5659  switch ( location ) {
    5760
  • cpukit/score/src/objectidtoname.c

    rb8c28e8 r8932955  
    4444  uint32_t             the_api;
    4545  uint32_t             the_class;
     46  Objects_Id           tmpId;
    4647  Objects_Information *information;
    4748  Objects_Control     *the_object = (Objects_Control *) 0;
     
    5152    return OBJECTS_INVALID_NAME;
    5253
    53   the_api = _Objects_Get_API( id );
     54  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
     55
     56  the_api = _Objects_Get_API( tmpId );
    5457  if ( the_api && the_api > OBJECTS_APIS_LAST )
    5558    return OBJECTS_INVALID_ID;
    5659
    57   the_class = _Objects_Get_class( id );
     60  the_class = _Objects_Get_class( tmpId );
    5861
    5962  information = _Objects_Information_table[ the_api ][ the_class ];
     
    6467    return OBJECTS_INVALID_ID;
    6568
    66   the_object = _Objects_Get( information, id, &ignored_location );
     69  the_object = _Objects_Get( information, tmpId, &ignored_location );
    6770  if ( !the_object )
    6871    return OBJECTS_INVALID_ID;
Note: See TracChangeset for help on using the changeset viewer.