Changeset f70079c in rtems
- Timestamp:
- 11/25/18 19:26:02 (4 years ago)
- Branches:
- 5, master
- Children:
- add0b6a3
- Parents:
- 1c2d178
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/25/18 19:26:02)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (12/07/18 13:22:02)
- Location:
- cpukit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/score/objectimpl.h
r1c2d178 rf70079c 138 138 */ 139 139 uint16_t name_length; 140 /** This field indicates the API of this object class. */141 uint8_t the_api;142 /** This is the class of this object set. */143 uint8_t the_class;144 140 /** This is the true if unlimited objects in this class. */ 145 141 bool auto_extend; -
cpukit/score/src/objectextendinformation.c
r1c2d178 rf70079c 55 55 Objects_Control *new_object_block; 56 56 bool do_extend; 57 Objects_Id api_class_and_node; 57 58 58 59 _Assert( … … 61 62 ); 62 63 64 api_class_and_node = information->maximum_id & ~OBJECTS_INDEX_MASK; 63 65 old_maximum = _Objects_Get_maximum_index( information ); 64 66 … … 219 221 information->inactive_per_block = inactive_per_block; 220 222 information->local_table = local_table; 221 information->maximum_id = _Objects_Build_id( 222 information->the_api, 223 information->the_class, 224 _Objects_Local_node, 225 new_maximum 226 ); 223 information->maximum_id = api_class_and_node 224 | (new_maximum << OBJECTS_INDEX_START_BIT); 227 225 228 226 _ISR_lock_ISR_enable( &lock_context ); … … 245 243 the_object = new_object_block; 246 244 for ( index = index_base ; index < index_end ; ++index ) { 247 the_object->id = _Objects_Build_id( 248 information->the_api, 249 information->the_class, 250 _Objects_Local_node, 251 index + OBJECTS_INDEX_MINIMUM 252 ); 245 the_object->id = api_class_and_node 246 | ( ( index + OBJECTS_INDEX_MINIMUM ) << OBJECTS_INDEX_START_BIT ); 253 247 254 248 _Chain_Initialize_node( &the_object->Node ); -
cpukit/score/src/objectinitializeinformation.c
r1c2d178 rf70079c 40 40 Objects_Maximum maximum_per_allocation; 41 41 42 information->the_api = the_api; 43 information->the_class = the_class; 42 information->maximum_id = _Objects_Build_id( 43 the_api, 44 the_class, 45 _Objects_Local_node, 46 0 47 ); 44 48 information->object_size = object_size; 45 49
Note: See TracChangeset
for help on using the changeset viewer.