Skip to content

Commit

Permalink
MIPS: kdump: Skip walking indirection page for crashkernels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Prem Mallappa authored and Ralf Baechle committed Sep 5, 2013
1 parent 8533966 commit 273463b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/mips/kernel/relocate_kernel.S
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ process_entry:
PTR_L s2, (s0)
PTR_ADD s0, s0, SZREG

/*
* In case of a kdump/crash kernel, the indirection page is not
* populated as the kernel is directly copied to a reserved location
*/
beqz s2, done

/* destination page */
and s3, s2, 0x1
beq s3, zero, 1f
Expand Down

0 comments on commit 273463b

Please sign in to comment.