Changeset 6af81435 in rtems
- Timestamp:
- 11/12/99 15:54:48 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- ea6bfcb
- Parents:
- 1925ec9b
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/objectallocatebyindex.c
r1925ec9b r6af81435 46 46 47 47 if ( index && information->maximum >= index ) { 48 /*49 * If the object is already in the local table, then50 * it has already been allocated/created by a previous51 * create call.52 */53 54 48 the_object = _Objects_Get_local_object( information, index ); 55 49 if ( the_object ) … … 58 52 /* XXX 59 53 * This whole section of code needs to be addressed. 60 * + The use of the index 0 for object_blocks should be dealt61 * with more properly so we can autoextend.54 * + The 0 should be dealt with more properly so we can autoextend. 55 * + The pointer arithmetic is probably too expensive. 62 56 * + etc. 63 57 */ 64 58 65 the_object = (Objects_Control *) information->object_blocks[ 0 ]; 66 59 the_object = (Objects_Control *) _Addresses_Add_offset( 60 information->object_blocks[ 0 ], 61 (sizeof_control * (index - 1)) 62 ); 67 63 _Chain_Extract( &the_object->Node ); 68 64 -
cpukit/score/src/objectallocatebyindex.c
r1925ec9b r6af81435 46 46 47 47 if ( index && information->maximum >= index ) { 48 /*49 * If the object is already in the local table, then50 * it has already been allocated/created by a previous51 * create call.52 */53 54 48 the_object = _Objects_Get_local_object( information, index ); 55 49 if ( the_object ) … … 58 52 /* XXX 59 53 * This whole section of code needs to be addressed. 60 * + The use of the index 0 for object_blocks should be dealt61 * with more properly so we can autoextend.54 * + The 0 should be dealt with more properly so we can autoextend. 55 * + The pointer arithmetic is probably too expensive. 62 56 * + etc. 63 57 */ 64 58 65 the_object = (Objects_Control *) information->object_blocks[ 0 ]; 66 59 the_object = (Objects_Control *) _Addresses_Add_offset( 60 information->object_blocks[ 0 ], 61 (sizeof_control * (index - 1)) 62 ); 67 63 _Chain_Extract( &the_object->Node ); 68 64
Note: See TracChangeset
for help on using the changeset viewer.