Changeset 95fbca1 in rtems for cpukit/score/inline


Ignore:
Timestamp:
Aug 18, 1995, 9:41:27 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
9863dbf
Parents:
b06e68ef
Message:

+ Added object type field to object id.

+ Added name pointer to Object_Control.

+ Modified Object Open and Close to address name field.

+ Removed name as separate element from Thread and Proxy Control.

File:
1 edited

Legend:

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

    rb06e68ef r95fbca1  
    5858
    5959STATIC INLINE Objects_Id _Objects_Build_id(
    60   unsigned32 node,
    61   unsigned32 index
    62 )
    63 {
    64   return ( (node << 16) | index );
    65 }
     60  Objects_Classes  the_class,
     61  unsigned32       node,
     62  unsigned32       index
     63)
     64{
     65  return ( (the_class << OBJECTS_CLASS_START_BIT) |
     66           (node << OBJECTS_NODE_START_BIT)       |
     67           (index << OBJECTS_INDEX_START_BIT) );
     68}
     69
     70/*PAGE
     71 *
     72 *  rtems_get_class
     73 */
     74 
     75STATIC INLINE Objects_Classes rtems_get_class(
     76  Objects_Id id
     77)
     78{
     79  return (Objects_Classes)
     80    ((id >> OBJECTS_CLASS_START_BIT) & OBJECTS_CLASS_VALID_BITS);
     81}
     82 
    6683
    6784/*PAGE
     
    7592)
    7693{
    77   return (id >> 16);
     94  return (id >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS;
    7895}
    7996
     
    88105)
    89106{
    90   return (id &0xFFFF);
     107  return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS;
    91108}
    92109
     
    175192  information->local_table[ index ] = the_object;
    176193  information->name_table[ index ]  = name;
     194  the_object->name = &information->name_table[ index ];
    177195}
    178196
     
    193211  information->local_table[ index ] = NULL;
    194212  information->name_table[ index ]  = 0;
     213  the_object->name = 0;
    195214}
    196215
Note: See TracChangeset for help on using the changeset viewer.