mips: reserve elfcorehdr
authorCorey Minyard <cminyard@mvista.com>
Tue, 12 Feb 2013 19:41:48 +0000 (19:41 +0000)
committerJohn Crispin <blogic@openwrt.org>
Tue, 19 Feb 2013 08:36:23 +0000 (09:36 +0100)
commit4893fc8856a81d2037c1c976cb320be6f00e84a0
treecb7b5d9c47f65193a5dbc62ccc80d22484d7ad77
parentd3ff9338023236f39332b07b3afed76c490a5041
mips: reserve elfcorehdr

/proc/vmcore wasn't showing up in kdump kernels.  It turns that that
for Octeon, the memory used by elfcorehdr wasn't being set aside
properly and it was getting clobbered before /proc/vmcore could get
it.  So reserve the memory if it shows up in a memory area managed
by the kernel.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Patchwork: http://patchwork.linux-mips.org/patch/4936/
arch/mips/kernel/setup.c