Skip to content

Commit 273463b

Browse files
pmallapparalfbaechle
authored andcommitted
MIPS: kdump: Skip walking indirection page for crashkernels
KDUMP: skip indirection page, as crashkernel has already copied to destination [ralf@linux-mips.org: cosmetic changes.] Signed-off-by: Prem Mallappa <pmallappa@caviumnetworks.com> Cc: linux-mips <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/5786/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent 8533966 commit 273463b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arch/mips/kernel/relocate_kernel.S

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ process_entry:
2626
PTR_L s2, (s0)
2727
PTR_ADD s0, s0, SZREG
2828

29+
/*
30+
* In case of a kdump/crash kernel, the indirection page is not
31+
* populated as the kernel is directly copied to a reserved location
32+
*/
33+
beqz s2, done
34+
2935
/* destination page */
3036
and s3, s2, 0x1
3137
beq s3, zero, 1f

0 commit comments

Comments
 (0)