[bios] Describe umalloc() heap as an in-use memory area

Use the concept of an in-use memory region defined as part of the
system memory map API to describe the umalloc() heap.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-15 15:35:27 +01:00
parent 4c4c94ca09
commit 3812860e39
7 changed files with 44 additions and 35 deletions

View File

@@ -1,17 +0,0 @@
#ifndef _IPXE_HIDEMEM_H
#define _IPXE_HIDEMEM_H
/**
* @file
*
* Hidden memory regions
*
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
extern void hide_umalloc ( physaddr_t start, physaddr_t end );
#endif /* _IPXE_HIDEMEM_H */

View File

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