mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
Fix FDT relocation
Or rather, disable it if FW_PAYLOAD_FDT_ADDR is not defined. This correspond to cases where the underlying FW that loaded and started opensbi did not provide any FDT. In such case, the platform code will need to prepare one. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
This commit is contained in:
@@ -41,6 +41,7 @@ _bss_zero:
|
||||
add a1, t1, zero
|
||||
_prev_arg1_override_done:
|
||||
|
||||
#ifdef FW_PAYLOAD_FDT_ADDR
|
||||
/*
|
||||
* Relocate Flatened Device Tree (FDT)
|
||||
* source FDT address = previous arg1
|
||||
@@ -99,6 +100,7 @@ _fdt_reloc_again:
|
||||
add t1, t1, __SIZEOF_POINTER__
|
||||
blt t1, t2, _fdt_reloc_again
|
||||
_fdt_reloc_done:
|
||||
#endif
|
||||
|
||||
/* Update boot hart flag */
|
||||
la a4, _boot_hart_done
|
||||
|
Reference in New Issue
Block a user