Skip to content

Commit 132507e

Browse files
Nikhil Guptarobherring
authored andcommitted
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 <[email protected]> Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent fa4300f commit 132507e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/fdt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ void __init early_init_fdt_scan_reserved_mem(void)
648648
}
649649

650650
fdt_scan_reserved_mem();
651-
fdt_init_reserved_mem();
652651
fdt_reserve_elfcorehdr();
652+
fdt_init_reserved_mem();
653653
}
654654

655655
/**

0 commit comments

Comments
 (0)