Changeset 95fbca1 in rtems for cpukit/score/macros


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/macros/rtems/score/object.inl

    rb06e68ef r95fbca1  
    4646 */
    4747
    48 #define _Objects_Build_id( _node, _index ) \
    49   ( ((_node) << 16) | (_index) )
     48#define _Objects_Build_id( _the_class, _node, _index ) \
     49  ( ((_the_class) << OBJECTS_CLASS_START_BIT) | \
     50    ((_node) << OBJECTS_NODE_START_BIT)       | \
     51    ((_index) << OBJECTS_INDEX_START_BIT) )
     52
     53/*PAGE
     54 *
     55 *  rtems_get_class
     56 */
     57 
     58#define rtems_get_class( _id ) \
     59  (Objects_Classes) \
     60    (((_id) >> OBJECTS_CLASS_START_BIT) & OBJECTS_CLASS_VALID_BITS)
    5061
    5162/*PAGE
     
    5667
    5768#define rtems_get_node( _id ) \
    58   ((_id) >> 16)
     69  (((_id) >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS)
    5970
    6071/*PAGE
     
    6576
    6677#define rtems_get_index( _id ) \
    67   ((_id) & 0xFFFF)
     78  (((_id) >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS)
    6879
    6980/*PAGE
     
    125136    (_information)->local_table[ _index ] = (_the_object); \
    126137    (_information)->name_table[ _index ]  = (_name); \
     138    (_the_object)->name = &(_information)->name_table[ _index ]; \
    127139  }
    128140
     
    140152    (_information)->local_table[ _index ] = NULL; \
    141153    (_information)->name_table[ _index ]  = 0; \
     154    (_the_object)->name = 0; \
    142155  }
    143156
Note: See TracChangeset for help on using the changeset viewer.