mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[uheap] Expose external heap region directly
We currently rely on implicit detection of the external heap region. The INT 15 memory map mangler relies on examining the corresponding in-use memory region, and the initrd reshuffler relies on performing a separate detection of the largest free memory block after startup has completed. Replace these with explicit public symbols to describe the external heap region. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -228,8 +228,6 @@ static inline void memmap_dump_all ( int hide ) {
|
||||
memmap_dump ( ®ion );
|
||||
}
|
||||
|
||||
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,
|
||||
const char *name );
|
||||
|
||||
@@ -15,4 +15,8 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#define UMALLOC_PREFIX_uheap __uheap_
|
||||
#endif
|
||||
|
||||
extern physaddr_t uheap_limit;
|
||||
extern physaddr_t uheap_start;
|
||||
extern physaddr_t uheap_end;
|
||||
|
||||
#endif /* _IPXE_UHEAP_H */
|
||||
|
||||
Reference in New Issue
Block a user