|
@@ -72,9 +72,9 @@ void * alloc_base_memory ( size_t size ) {
|
72
|
72
|
*/
|
73
|
73
|
memset ( ptr, 0, size_kb << 10 );
|
74
|
74
|
|
75
|
|
- DBG ( "Allocated %d kB of base memory at [%hx:0000,%hx:0000), "
|
76
|
|
- "%d kB now free\n", size_kb,
|
77
|
|
- ( virt_to_phys ( ptr ) >> 4 ),
|
|
75
|
+ DBG ( "Allocated %d kB of base memory at [%hx:0000,%hx:0000), " \
|
|
76
|
+ "%d kB now free\n", size_kb, \
|
|
77
|
+ ( virt_to_phys ( ptr ) >> 4 ), \
|
78
|
78
|
( ( virt_to_phys ( ptr ) + ( size_kb << 10 ) ) >> 4 ), fbms );
|
79
|
79
|
|
80
|
80
|
/* Update our memory map */
|
|
@@ -170,10 +170,10 @@ static void free_unused_base_memory ( void ) {
|
170
|
170
|
|
171
|
171
|
DBG ( "Freed %d kB of base memory at [%hx:0000,%hx:0000), "
|
172
|
172
|
"%d kB now free\n",
|
173
|
|
- free_block->size_kb,
|
|
173
|
+ free_block->header.size_kb,
|
174
|
174
|
( virt_to_phys ( free_block ) >> 4 ),
|
175
|
175
|
( ( virt_to_phys ( free_block ) +
|
176
|
|
- ( free_block->size_kb << 10 ) ) >> 4 ),
|
|
176
|
+ ( free_block->header.size_kb << 10 ) ) >> 4 ),
|
177
|
177
|
fbms );
|
178
|
178
|
|
179
|
179
|
/* Do not zero out the freed block, because it might
|