diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-12-04 02:39:51 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:52:35 -0500 |
commit | 54c32021eb6feafc32e90104e960b38301521b7b (patch) | |
tree | 7aff1e11966569f4b8dce57d6f70eb4d1e72bec2 /kernel | |
parent | dcee30361d25ea83499a99f921f9a56b4a1a79e7 (diff) |
[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')
-rw-r--r-- | kernel/crash_dump.c | 3 |
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 @@ | |||
14 | 14 | ||
15 | #include <asm/io.h> | 15 | #include <asm/io.h> |
16 | #include <asm/uaccess.h> | 16 | #include <asm/uaccess.h> |
17 | #include <asm/kexec.h> | ||
17 | 18 | ||
18 | /* Stores the physical address of elf header of crash image. */ | 19 | /* Stores the physical address of elf header of crash image. */ |
19 | unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; | 20 | unsigned long long elfcorehdr_addr = ELFCORE_ADDR_MAX; |
20 | 21 | ||
22 | #ifndef HAVE_ARCH_COPY_OLDMEM_PAGE | ||
21 | /** | 23 | /** |
22 | * copy_oldmem_page - copy one page from "oldmem" | 24 | * copy_oldmem_page - copy one page from "oldmem" |
23 | * @pfn: page frame number to be copied | 25 | * @pfn: page frame number to be copied |
@@ -59,3 +61,4 @@ ssize_t copy_oldmem_page(unsigned long pfn, char *buf, | |||
59 | kfree(page); | 61 | kfree(page); |
60 | return csize; | 62 | return csize; |
61 | } | 63 | } |
64 | #endif | ||