mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
Fix address-marking bugs
* Non-blocksize-aligned regions could fail to be found. Have the bootloader load them aligned. * Consolidating used frame blocks in the bootstrap means these would have been impossible to free as address space * mark_permanent wasn't actually removing blocks from the free list
This commit is contained in:
@@ -304,7 +304,6 @@ memory_initialize(uint16_t scratch_pages, const void *memory_map, size_t map_len
|
||||
|
||||
// Now go back through these lists and consolidate
|
||||
block_slab.append(frame_block::consolidate(free));
|
||||
block_slab.append(frame_block::consolidate(used));
|
||||
|
||||
region_allocator region_slab(page_size, allocator);
|
||||
region_slab.allocate(); // Allocate some buddy regions for the address_manager
|
||||
|
||||
Reference in New Issue
Block a user