summaryrefslogtreecommitdiffstats
path: root/kernel/crash_dump.c
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2005-12-04 18:39:51 +1100
committerPaul Mackerras <paulus@samba.org>2006-01-09 14:52:35 +1100
commit54c32021eb6feafc32e90104e960b38301521b7b (patch)
tree7aff1e11966569f4b8dce57d6f70eb4d1e72bec2 /kernel/crash_dump.c
parentdcee30361d25ea83499a99f921f9a56b4a1a79e7 (diff)
downloadlinux-stable-54c32021eb6feafc32e90104e960b38301521b7b.tar.gz
linux-stable-54c32021eb6feafc32e90104e960b38301521b7b.tar.bz2
linux-stable-54c32021eb6feafc32e90104e960b38301521b7b.zip
[PATCH] powerpc: Add arch-dependent copy_oldmem_page
Signed-off-by: Haren Myneni <haren@us.ibm.com> Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.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 334c37f5218a..fccb27dbc623 100644
--- a/kernel/crash_dump.c
+++ b/kernel/crash_dump.c
@@ -14,10 +14,12 @@
#include <asm/io.h>
#include <asm/uaccess.h>
+#include <asm/kexec.h>
/* Stores the physical address of elf header of crash image. */
unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX;
+#ifndef HAVE_ARCH_COPY_OLDMEM_PAGE
/**
* copy_oldmem_page - copy one page from "oldmem"
* @pfn: page frame number to be copied
@@ -59,3 +61,4 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf,
kfree(page);
return csize;
}
+#endif