mirror of
https://github.com/ipxe/ipxe
synced 2026-02-01 15:29:45 +03:00
[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:
@@ -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 */
|
||||
@@ -228,6 +228,8 @@ static inline void memmap_dump_all ( int hide ) {
|
||||
memmap_dump ( ®ion );
|
||||
}
|
||||
|
||||
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 );
|
||||
|
||||
Reference in New Issue
Block a user