[fdtmem] Update to use the generic system memory map API

Provide an implementation of the system memory map API based on the
system device tree, excluding any memory outside the size of the
accessible physical address space and defining an in-use region to
cover the relocated copy of iPXE and the system device tree.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-14 22:30:13 +01:00
parent bab3d76717
commit 3f6ee95737
5 changed files with 150 additions and 147 deletions

View File

@@ -1003,7 +1003,7 @@ install:
* s1 - device tree physical address
* s2 - saved return address
* s3 - relocation records physical address
* s4 - accessible physical address limit
* s4 - maximum accessible physical address
* s5 - relocation physical address
* s6 - relocation offset
* tp - virtual address offset
@@ -1030,7 +1030,7 @@ install:
mv a0, a2
beqz a2, 1f
call enable_paging
1: mv s4, a0
1: addi s4, a0, -1
/* Apply relocations, if still needed after enabling paging */
mv a0, s3