Changeset 95fbca1 in rtems for c/src/exec/score/inline/rtems/score/object.inl
- Timestamp:
- 08/18/95 21:41:27 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 9863dbf
- Parents:
- b06e68ef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/inline/rtems/score/object.inl
rb06e68ef r95fbca1 58 58 59 59 STATIC 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 75 STATIC 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 66 83 67 84 /*PAGE … … 75 92 ) 76 93 { 77 return (id >> 16);94 return (id >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS; 78 95 } 79 96 … … 88 105 ) 89 106 { 90 return (id &0xFFFF);107 return (id >> OBJECTS_INDEX_START_BIT) & OBJECTS_INDEX_VALID_BITS; 91 108 } 92 109 … … 175 192 information->local_table[ index ] = the_object; 176 193 information->name_table[ index ] = name; 194 the_object->name = &information->name_table[ index ]; 177 195 } 178 196 … … 193 211 information->local_table[ index ] = NULL; 194 212 information->name_table[ index ] = 0; 213 the_object->name = 0; 195 214 } 196 215
Note: See TracChangeset
for help on using the changeset viewer.