ath9k: Fix noisefloor history update for extn chains
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / kernel / crash_dump.c
blob5f85690285d489543bf3b447d788f2ca09790d8b
1 #include <linux/kernel.h>
2 #include <linux/crash_dump.h>
3 #include <linux/init.h>
4 #include <linux/errno.h>
5 #include <linux/module.h>
7 /*
8 * If we have booted due to a crash, max_pfn will be a very low value. We need
9 * to know the amount of memory that the previous kernel used.
11 unsigned long saved_max_pfn;
14 * stores the physical address of elf header of crash image
16 * Note: elfcorehdr_addr is not just limited to vmcore. It is also used by
17 * is_kdump_kernel() to determine if we are booting after a panic. Hence put
18 * it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE.
20 unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
23 * elfcorehdr= specifies the location of elf core header stored by the crashed
24 * kernel. This option will be passed by kexec loader to the capture kernel.
26 static int __init setup_elfcorehdr(char *arg)
28 char *end;
29 if (!arg)
30 return -EINVAL;
31 elfcorehdr_addr = memparse(arg, &end);
32 return end > arg ? 0 : -EINVAL;
34 early_param("elfcorehdr", setup_elfcorehdr);