forked from Mirrors/opensbi
lib: utils/reset: Pass the FDT to fdt_reset_init()
Indicate that this function does not modify the FDT blob, and deduplicate the call to fdt_get_address(). Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:

committed by
Anup Patel

parent
6e5db7b09c
commit
fa6dfce017
@@ -225,7 +225,7 @@ static int generic_early_init(bool cold_boot)
|
||||
int rc;
|
||||
|
||||
if (cold_boot) {
|
||||
fdt_reset_init();
|
||||
fdt_reset_init(fdt);
|
||||
|
||||
if (semihosting_enabled())
|
||||
rc = semihosting_init();
|
||||
|
Reference in New Issue
Block a user