aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/crash_dump.c
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@in.ibm.com>2005-06-25 17:58:20 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-25 19:24:53 -0400
commit2030eae52b416a9a9f0ffda74c982b7f1e19496d (patch)
tree3715724cb19e9165873635fcdf7e9e30d86f7710 /kernel/crash_dump.c
parent60e64d46a58236e3c718074372cab6a5b56a3b15 (diff)
[PATCH] Retrieve elfcorehdr address from command line
This patch adds support for retrieving the address of elf core header if one is passed in command line. Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/crash_dump.c')
-rw-r--r--kernel/crash_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/crash_dump.c b/kernel/crash_dump.c
index 5a1e6d5d203e..10b966c3744c 100644
--- a/kernel/crash_dump.c
+++ b/kernel/crash_dump.c
@@ -15,6 +15,9 @@
15#include <asm/io.h> 15#include <asm/io.h>
16#include <asm/uaccess.h> 16#include <asm/uaccess.h>
17 17
18/* Stores the physical address of elf header of crash image. */
19unsigned long long elfcorehdr_addr;
20
18/* 21/*
19 * Copy a page from "oldmem". For this page, there is no pte mapped 22 * Copy a page from "oldmem". For this page, there is no pte mapped
20 * in the current kernel. We stitch up a pte, similar to kmap_atomic. 23 * in the current kernel. We stitch up a pte, similar to kmap_atomic.