[bios] Use generic external heap based on the system memory map

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-19 18:55:49 +01:00
parent 140ceeeb08
commit d0c35b6823
9 changed files with 8 additions and 303 deletions

View File

@@ -1,16 +0,0 @@
#ifndef _IPXE_MEMBLOCK_H
#define _IPXE_MEMBLOCK_H
/** @file
*
* Largest memory block
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
extern size_t largest_memblock ( void **start );
#endif /* _IPXE_MEMBLOCK_H */

View File

@@ -228,7 +228,7 @@ static inline void memmap_dump_all ( int hide ) {
memmap_dump ( &region );
}
extern struct used_region umalloc_used __used_region;
extern struct used_region uheap_used __used_region;
extern void memmap_update ( struct memmap_region *region, uint64_t start,
uint64_t size, unsigned int flags,