forked from Minki/linux
57cac4d188
o elfcorehdr_addr is used by not only the code under CONFIG_PROC_VMCORE but also by the code which is not inside CONFIG_PROC_VMCORE. For example, is_kdump_kernel() is used by powerpc code to determine if kernel is booting after a panic then use previous kernel's TCE table. So even if CONFIG_PROC_VMCORE is not set in second kernel, one should be able to correctly determine that we are booting after a panic and setup calgary iommu accordingly. o So remove the assumption that elfcorehdr_addr is under CONFIG_PROC_VMCORE. o Move definition of elfcorehdr_addr to arch dependent crash files. (Unfortunately crash dump does not have an arch independent file otherwise that would have been the best place). o kexec.c is not the right place as one can Have CRASH_DUMP enabled in second kernel without KEXEC being enabled. o I don't see sh setup code parsing the command line for elfcorehdr_addr. I am wondering how does vmcore interface work on sh. Anyway, I am atleast defining elfcoredhr_addr so that compilation is not broken on sh. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Acked-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Simon Horman <horms@verge.net.au> Acked-by: Paul Mundt <lethal@linux-sh.org> Cc: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> |
||
---|---|---|
.. | ||
cpu | ||
timers | ||
vsyscall | ||
.gitignore | ||
asm-offsets.c | ||
cf-enabler.c | ||
cpufreq.c | ||
crash_dump.c | ||
debugtraps.S | ||
dump_task.c | ||
early_printk.c | ||
entry-common.S | ||
head_32.S | ||
head_64.S | ||
init_task.c | ||
io_generic.c | ||
io_trapped.c | ||
io.c | ||
irq.c | ||
kgdb_jmp.S | ||
kgdb_stub.c | ||
machine_kexec.c | ||
machvec.c | ||
Makefile | ||
Makefile_32 | ||
Makefile_64 | ||
module.c | ||
pm.c | ||
process_32.c | ||
process_64.c | ||
ptrace_32.c | ||
ptrace_64.c | ||
relocate_kernel.S | ||
setup.c | ||
sh_bios.c | ||
sh_ksyms_32.c | ||
sh_ksyms_64.c | ||
signal_32.c | ||
signal_64.c | ||
smp.c | ||
stacktrace.c | ||
sys_sh32.c | ||
sys_sh64.c | ||
sys_sh.c | ||
syscalls_32.S | ||
syscalls_64.S | ||
time_32.c | ||
time_64.c | ||
topology.c | ||
traps_32.c | ||
traps_64.c | ||
traps.c | ||
vmlinux_32.lds.S | ||
vmlinux_64.lds.S | ||
vmlinux.lds.S |