summaryrefslogtreecommitdiff
path: root/drivers/of
diff options
context:
space:
mode:
authorNikhil Gupta <nikhil.gupta@nxp.com>2022-01-28 09:53:21 +0530
committerRob Herring <robh@kernel.org>2022-02-17 17:13:52 -0600
commit132507ed04ce0c5559be04dd378fec4f3bbc00e8 (patch)
tree05ab0e062f0f2a0e05d9264a2dae1dc09d964398 /drivers/of
parentfa4300f060e5c4ca670b705f1e9b93685ad30c5b (diff)
of/fdt: move elfcorehdr reservation early for crash dump kernel
elfcorehdr_addr is fixed address passed to Second kernel which may be conflicted with potential reserved memory in Second kernel,so fdt_reserve_elfcorehdr() ahead of fdt_init_reserved_mem() can relieve this situation. Signed-off-by: Nikhil Gupta <nikhil.gupta@nxp.com> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220128042321.15228-1-nikhil.gupta@nxp.com
Diffstat (limited to 'drivers/of')
-rw-r--r--drivers/of/fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index ad85ff6474ff..ec315b060cd5 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -648,8 +648,8 @@ void __init early_init_fdt_scan_reserved_mem(void)
}
fdt_scan_reserved_mem();
- fdt_init_reserved_mem();
fdt_reserve_elfcorehdr();
+ fdt_init_reserved_mem();
}
/**