Changeset 3861130 in rtems
- Timestamp:
- 09/18/96 20:50:27 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 56e0b88
- Parents:
- 4944b5bf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/src/heap.c
r4944b5bf r3861130 150 150 } else { /* cases 4 and 5 */ 151 151 152 the_block = (Heap_Block *) (starting_address - HEAP_OVERHEAD); 152 the_block = (Heap_Block *) 153 _Addresses_Subtract_offset( starting_address, HEAP_OVERHEAD ); 153 154 if ( the_block != the_heap->final ) 154 155 return HEAP_EXTEND_NOT_IMPLEMENTED; /* case 5 */ … … 259 260 260 261 offset = the_heap->page_size - (((unsigned32) ptr) & (the_heap->page_size - 1)); 261 ptr += offset;262 ptr = _Addresses_Add_offset( ptr, offset ); 262 263 *(((unsigned32 *) ptr) - 1) = offset; 263 264 -
cpukit/score/src/heap.c
r4944b5bf r3861130 150 150 } else { /* cases 4 and 5 */ 151 151 152 the_block = (Heap_Block *) (starting_address - HEAP_OVERHEAD); 152 the_block = (Heap_Block *) 153 _Addresses_Subtract_offset( starting_address, HEAP_OVERHEAD ); 153 154 if ( the_block != the_heap->final ) 154 155 return HEAP_EXTEND_NOT_IMPLEMENTED; /* case 5 */ … … 259 260 260 261 offset = the_heap->page_size - (((unsigned32) ptr) & (the_heap->page_size - 1)); 261 ptr += offset;262 ptr = _Addresses_Add_offset( ptr, offset ); 262 263 *(((unsigned32 *) ptr) - 1) = offset; 263 264
Note: See TracChangeset
for help on using the changeset viewer.