mirror of
https://github.com/ipxe/ipxe
synced 2025-12-09 10:50:28 +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:
@@ -1088,6 +1088,7 @@ install:
|
||||
|
||||
/* Copy and register system device tree */
|
||||
phys_to_virt a0, s1
|
||||
mv a1, s4
|
||||
call fdtmem_register
|
||||
|
||||
/* Return to a virtual address in the relocated copy */
|
||||
|
||||
Reference in New Issue
Block a user