Changeset 95fbca1 in rtems for cpukit/score/macros
- Timestamp:
- 08/18/95 21:41:27 (29 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 9863dbf
- Parents:
- b06e68ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/score/macros/rtems/score/object.inl
rb06e68ef r95fbca1 46 46 */ 47 47 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) 50 61 51 62 /*PAGE … … 56 67 57 68 #define rtems_get_node( _id ) \ 58 (( _id) >> 16)69 (((_id) >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS) 59 70 60 71 /*PAGE … … 65 76 66 77 #define rtems_get_index( _id ) \ 67 (( _id) & 0xFFFF)78 (((_id) >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS) 68 79 69 80 /*PAGE … … 125 136 (_information)->local_table[ _index ] = (_the_object); \ 126 137 (_information)->name_table[ _index ] = (_name); \ 138 (_the_object)->name = &(_information)->name_table[ _index ]; \ 127 139 } 128 140 … … 140 152 (_information)->local_table[ _index ] = NULL; \ 141 153 (_information)->name_table[ _index ] = 0; \ 154 (_the_object)->name = 0; \ 142 155 } 143 156
Note: See TracChangeset
for help on using the changeset viewer.