mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 18:30:28 +03:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user