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 <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20230329081932.79831-3-alexghiti@rivosinc.com Cc: stable@vger.kernel.org Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
This commit is contained in:
parent
ef69d2559f
commit
f158162607
@ -278,10 +278,7 @@ void __init setup_arch(char **cmdline_p)
|
|||||||
#if IS_ENABLED(CONFIG_BUILTIN_DTB)
|
#if IS_ENABLED(CONFIG_BUILTIN_DTB)
|
||||||
unflatten_and_copy_device_tree();
|
unflatten_and_copy_device_tree();
|
||||||
#else
|
#else
|
||||||
if (early_init_dt_verify(__va(XIP_FIXUP(dtb_early_pa))))
|
|
||||||
unflatten_device_tree();
|
unflatten_device_tree();
|
||||||
else
|
|
||||||
pr_err("No DTB found in kernel mappings\n");
|
|
||||||
#endif
|
#endif
|
||||||
misc_mem_init();
|
misc_mem_init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user