Skip to content

Commit f158162

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: Do not set initial_boot_params to the linear address of the dtb
early_init_dt_verify() is already called in parse_dtb() and since the dtb address does not change anymore (it is now in the fixmap region), no need to reset initial_boot_params by calling early_init_dt_verify() again. Signed-off-by: Alexandre Ghiti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent ef69d25 commit f158162

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

arch/riscv/kernel/setup.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,7 @@ void __init setup_arch(char **cmdline_p)
278278
#if IS_ENABLED(CONFIG_BUILTIN_DTB)
279279
unflatten_and_copy_device_tree();
280280
#else
281-
if (early_init_dt_verify(__va(XIP_FIXUP(dtb_early_pa))))
282-
unflatten_device_tree();
283-
else
284-
pr_err("No DTB found in kernel mappings\n");
281+
unflatten_device_tree();
285282
#endif
286283
misc_mem_init();
287284

0 commit comments

Comments
 (0)