linux/arch/sh/kernel
Vivek Goyal 57cac4d188 kdump: make elfcorehdr_addr independent of CONFIG_PROC_VMCORE
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>
2008-10-20 08:52:39 -07:00
..
cpu sh64: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y. 2008-09-05 14:51:28 +09:00
timers sh/kernel/ cleanups 2008-07-28 18:10:30 +09:00
vsyscall sh: Terminate .eh_frame in VDSO with a 4-byte 0. 2007-11-02 12:29:37 +09:00
.gitignore sh: Add an arch/sh/kernel/.gitignore 2008-07-29 08:29:32 +09:00
asm-offsets.c sh: use kbuild.h instead of defining macros in asm-offsets.c 2008-04-29 08:06:30 -07:00
cf-enabler.c sh: Move out the solution engine headers to arch/sh/include/mach-se/ 2008-07-29 21:41:37 +09:00
cpufreq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6 2007-10-13 09:49:04 -07:00
crash_dump.c kdump: make elfcorehdr_addr independent of CONFIG_PROC_VMCORE 2008-10-20 08:52:39 -07:00
debugtraps.S
dump_task.c sh: Fix occasional FPU register corruption under preempt. 2008-03-26 19:02:47 +09:00
early_printk.c sh: reset hardware from early printk 2008-05-08 19:51:54 +09:00
entry-common.S sh: resume_kernel fix for kernel oops built with CONFIG_BKL_PREEMPT=y. 2008-09-05 14:42:16 +09:00
head_32.S sh: disable initrd defaults in .empty_zero_page. 2008-05-16 14:55:07 +09:00
head_64.S sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
init_task.c [PATCH] take init_files to fs/file.c 2008-05-16 17:22:20 -04:00
io_generic.c sh: trapped io support V2 2008-02-14 14:22:09 +09:00
io_trapped.c sh: Fix up section mismatches. 2008-03-06 12:43:38 +09:00
io.c sh: trapped io support V2 2008-02-14 14:22:09 +09:00
irq.c sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
kgdb_jmp.S
kgdb_stub.c sh: use the common ascii hex helpers 2008-05-16 15:09:08 +09:00
machine_kexec.c sh: fix kexec entry point for crash kernels 2008-08-28 14:53:03 +09:00
machvec.c
Makefile sh: Have 32-bit use arch/sh/kernel/Makefile_32. 2008-01-28 13:18:41 +09:00
Makefile_32 sh: Make dump_task dependent on ELF core. 2008-07-28 18:10:28 +09:00
Makefile_64 Generic semaphore implementation 2008-04-17 10:42:34 -04:00
module.c sh: module_alloc() should be using vmalloc_exec(). 2008-08-04 13:34:29 +09:00
pm.c
process_32.c sh/kernel/ cleanups 2008-07-28 18:10:30 +09:00
process_64.c sh/kernel/ cleanups 2008-07-28 18:10:30 +09:00
ptrace_32.c sh: Fix up the audit arch endian specification. 2008-08-02 04:39:33 +09:00
ptrace_64.c sh: fix ptrace_64.c:user_disable_single_step() 2008-08-25 14:08:02 +09:00
relocate_kernel.S
setup.c sh: crash kernel resource fix 2008-08-28 14:52:58 +09:00
sh_bios.c
sh_ksyms_32.c sh: Don't export __{s,u}divsi3_i4i from SH-2 libgcc. 2008-08-11 20:17:49 +09:00
sh_ksyms_64.c sh64: Some symbol exports to make the allmodconfig happier. 2008-05-08 19:51:41 +09:00
signal_32.c sh: Make syscall tracer use tracehook notifiers, add TIF_NOTIFY_RESUME. 2008-08-02 04:39:33 +09:00
signal_64.c sh: Make syscall tracer use tracehook notifiers, add TIF_NOTIFY_RESUME. 2008-08-02 04:39:33 +09:00
smp.c kernel/cpu.c: create a CPU_STARTING cpu_chain notifier 2008-09-08 19:25:24 +02:00
stacktrace.c fix core/stacktrace changes on avr32, mips, sh 2008-07-18 14:42:35 +02:00
sys_sh32.c flag parameters: pipe 2008-07-24 10:47:28 -07:00
sys_sh64.c unified (weak) sys_pipe implementation 2008-05-03 13:50:33 -07:00
sys_sh.c sh: fix semtimedop syscall 2008-08-28 14:53:22 +09:00
syscalls_32.S sh: Wire up new syscalls. 2008-07-28 18:34:45 +09:00
syscalls_64.S sh: Wire up new syscalls. 2008-07-28 18:34:45 +09:00
time_32.c sh/kernel/ cleanups 2008-07-28 18:10:30 +09:00
time_64.c sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
topology.c sh: replace remaining __FUNCTION__ occurrences 2008-03-06 11:18:22 +09:00
traps_32.c sh2(A) exception handler update 2008-07-28 18:10:34 +09:00
traps_64.c sh64: add missing #include <asm/fpu.h>'s 2008-04-16 02:00:09 +09:00
traps.c sh: Make is_valid_bugaddr() more intelligent on nommu. 2008-05-19 19:32:07 +09:00
vmlinux_32.lds.S move BUG_TABLE into RODATA 2008-05-25 07:06:08 +02:00
vmlinux_64.lds.S move BUG_TABLE into RODATA 2008-05-25 07:06:08 +02:00
vmlinux.lds.S sh: Split out linker script to _32 and _64 variants. 2008-01-28 13:18:45 +09:00