diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-06-22 00:02:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-08 06:50:13 -0400 |
commit | 17b4cceb1feb2a8865ce47064dd3bd446063a5d5 (patch) | |
tree | acdc963f0300a786a2a86eeb451b6913087b58a0 /arch/x86/kernel/setup.c | |
parent | ce97c40e28223c148e142bda7af48fd0f27c81f9 (diff) |
x86: move elfcorehdr parsing to setup.c
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index 3b9ec81ba4fb..5497fb9b00a0 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/bootmem.h> | 4 | #include <linux/bootmem.h> |
5 | #include <linux/percpu.h> | 5 | #include <linux/percpu.h> |
6 | #include <linux/kexec.h> | 6 | #include <linux/kexec.h> |
7 | #include <linux/crash_dump.h> | ||
7 | #include <asm/smp.h> | 8 | #include <asm/smp.h> |
8 | #include <asm/percpu.h> | 9 | #include <asm/percpu.h> |
9 | #include <asm/sections.h> | 10 | #include <asm/sections.h> |
@@ -501,3 +502,21 @@ void __init reserve_standard_io_resources(void) | |||
501 | 502 | ||
502 | } | 503 | } |
503 | 504 | ||
505 | #ifdef CONFIG_PROC_VMCORE | ||
506 | /* elfcorehdr= specifies the location of elf core header | ||
507 | * stored by the crashed kernel. This option will be passed | ||
508 | * by kexec loader to the capture kernel. | ||
509 | */ | ||
510 | static int __init setup_elfcorehdr(char *arg) | ||
511 | { | ||
512 | char *end; | ||
513 | if (!arg) | ||
514 | return -EINVAL; | ||
515 | elfcorehdr_addr = memparse(arg, &end); | ||
516 | return end > arg ? 0 : -EINVAL; | ||
517 | } | ||
518 | early_param("elfcorehdr", setup_elfcorehdr); | ||
519 | #endif | ||
520 | |||
521 | |||
522 | |||