From 11e01f0652daaf198317e2e13c8bb1d19f664ce9 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 22 May 2025 11:58:11 +0100 Subject: [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 --- src/include/ipxe/memmap.h | 2 -- src/include/ipxe/uheap.h | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/ipxe/memmap.h b/src/include/ipxe/memmap.h index 1283421bb..0175be11a 100644 --- a/src/include/ipxe/memmap.h +++ b/src/include/ipxe/memmap.h @@ -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 ); diff --git a/src/include/ipxe/uheap.h b/src/include/ipxe/uheap.h index 194c13175..d356786d3 100644 --- a/src/include/ipxe/uheap.h +++ b/src/include/ipxe/uheap.h @@ -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 */ -- cgit v1.2.3-55-g7522