Changeset 6a10709 in rtems
- Timestamp:
- 03/31/99 22:33:14 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- f470989
- Parents:
- 5c95996
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/object.c
r5c95996 r6a10709 96 96 97 97 minimum_index = _Objects_Get_index( information->minimum_id ); 98 index_base = minimum_index;99 block = 0;100 101 if ( information->maximum < minimum_index)98 index_base = minimum_index; 99 block = 0; 100 101 if ( information->maximum < minimum_index ) 102 102 block_count = 0; 103 103 else { … … 440 440 ) 441 441 { 442 static Objects_Control *null_local_table = NULL; 443 442 444 unsigned32 minimum_index; 443 445 unsigned32 index; … … 472 474 473 475 information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? TRUE : FALSE; 474 maximum &= ~OBJECTS_UNLIMITED_OBJECTS;476 maximum &= ~OBJECTS_UNLIMITED_OBJECTS; 475 477 476 478 /* … … 479 481 480 482 information->allocation_size = maximum; 483 484 /* 485 * Provide a null local table entry for the case of any empty table. 486 */ 487 488 information->local_table = &null_local_table; 481 489 482 490 /* … … 496 504 name_length = maximum_name_length; 497 505 498 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1))506 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 499 507 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 500 508 ~(OBJECTS_NAME_ALIGNMENT-1); -
cpukit/score/src/object.c
r5c95996 r6a10709 96 96 97 97 minimum_index = _Objects_Get_index( information->minimum_id ); 98 index_base = minimum_index;99 block = 0;100 101 if ( information->maximum < minimum_index)98 index_base = minimum_index; 99 block = 0; 100 101 if ( information->maximum < minimum_index ) 102 102 block_count = 0; 103 103 else { … … 440 440 ) 441 441 { 442 static Objects_Control *null_local_table = NULL; 443 442 444 unsigned32 minimum_index; 443 445 unsigned32 index; … … 472 474 473 475 information->auto_extend = (maximum & OBJECTS_UNLIMITED_OBJECTS) ? TRUE : FALSE; 474 maximum &= ~OBJECTS_UNLIMITED_OBJECTS;476 maximum &= ~OBJECTS_UNLIMITED_OBJECTS; 475 477 476 478 /* … … 479 481 480 482 information->allocation_size = maximum; 483 484 /* 485 * Provide a null local table entry for the case of any empty table. 486 */ 487 488 information->local_table = &null_local_table; 481 489 482 490 /* … … 496 504 name_length = maximum_name_length; 497 505 498 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1))506 if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) ) 499 507 name_length = (name_length + OBJECTS_NAME_ALIGNMENT) & 500 508 ~(OBJECTS_NAME_ALIGNMENT-1);
Note: See TracChangeset
for help on using the changeset viewer.