mirror of
https://github.com/ipxe/ipxe
synced 2026-05-16 15:00:48 +03:00
[fdtmem] Record size of accessible physical address space
The size of accessible physical address space will be required for the runtime memory map, not just at relocation time. Make this size an additional parameter to fdt_register() (matching the prototype for fdt_relocate()), and record the value for future reference. Note that we cannot simply store the limit in fdt_relocate() since it is called before .data is writable and before .bss is zeroed. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -13,6 +13,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#include <ipxe/fdt.h>
|
||||
|
||||
extern physaddr_t fdtmem_relocate ( struct fdt_header *hdr, size_t limit );
|
||||
extern int fdtmem_register ( struct fdt_header *hdr );
|
||||
extern int fdtmem_register ( struct fdt_header *hdr, size_t limit );
|
||||
|
||||
#endif /* _IPXE_FDTMEM_H */
|
||||
|
||||
Reference in New Issue
Block a user