|
@@ -25,6 +25,7 @@
|
|
#include <linux/smp.h>
|
|
#include <linux/smp.h>
|
|
#include <linux/err.h>
|
|
#include <linux/err.h>
|
|
#include <linux/debugfs.h>
|
|
#include <linux/debugfs.h>
|
|
|
|
+#include <linux/crash_dump.h>
|
|
#include <asm/uaccess.h>
|
|
#include <asm/uaccess.h>
|
|
#include <asm/io.h>
|
|
#include <asm/io.h>
|
|
#include <asm/page.h>
|
|
#include <asm/page.h>
|
|
@@ -286,6 +287,25 @@ static void __init setup_memory(void)
|
|
extern void __init setup_memory(void);
|
|
extern void __init setup_memory(void);
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * Note: elfcorehdr_addr is not just limited to vmcore. It is also used by
|
|
|
|
+ * is_kdump_kernel() to determine if we are booting after a panic. Hence
|
|
|
|
+ * ifdef it under CONFIG_CRASH_DUMP and not CONFIG_PROC_VMCORE.
|
|
|
|
+ */
|
|
|
|
+#ifdef CONFIG_CRASH_DUMP
|
|
|
|
+/* elfcorehdr= specifies the location of elf core header
|
|
|
|
+ * stored by the crashed kernel.
|
|
|
|
+ */
|
|
|
|
+static int __init parse_elfcorehdr(char *arg)
|
|
|
|
+{
|
|
|
|
+ if (!arg)
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ elfcorehdr_addr = memparse(arg, &arg);
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+early_param("elfcorehdr", parse_elfcorehdr);
|
|
|
|
+#endif
|
|
|
|
+
|
|
void __init setup_arch(char **cmdline_p)
|
|
void __init setup_arch(char **cmdline_p)
|
|
{
|
|
{
|
|
enable_mmu();
|
|
enable_mmu();
|