]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[fdtmem] Record size of accessible physical address space
authorMichael Brown <mcb30@ipxe.org>
Wed, 14 May 2025 21:09:51 +0000 (22:09 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 14 May 2025 21:09:51 +0000 (22:09 +0100)
commite0c4cfa81e7ff919f594a6aca8416536c855838d
tree82953379d89945450310050866e22177654c1851
parent64ad1d03c3a59df9d36fefb573007d2f1e5e4f9f
[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>
src/arch/riscv/prefix/libprefix.S
src/core/fdtmem.c
src/include/ipxe/fdtmem.h