diff options
author | Prem Mallappa <prem.mallappa@gmail.com> | 2013-08-30 12:05:10 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-09-05 20:53:37 +0200 |
commit | 273463b78237b53936a61046bfb4c8e55150ca24 (patch) | |
tree | d76ddceaeb9f2377dc504e451aed34e31c5463fb /arch | |
parent | MIPS: DECstation HRT calibration bug fixes (diff) | |
download | linux-273463b78237b53936a61046bfb4c8e55150ca24.tar.xz linux-273463b78237b53936a61046bfb4c8e55150ca24.zip |
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/relocate_kernel.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/kernel/relocate_kernel.S b/arch/mips/kernel/relocate_kernel.S index 43d2d78d3287..74bab9ddd0e1 100644 --- a/arch/mips/kernel/relocate_kernel.S +++ b/arch/mips/kernel/relocate_kernel.S @@ -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 |