diff options
author | Albert Herranz <albert_herranz@yahoo.es> | 2006-02-01 06:05:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:19 -0500 |
commit | 39931e41becd6abeb2014747369d8b6392f5dbac (patch) | |
tree | 1da728fbefb60f930df6357dcb8f9b1034d6b6d4 /include/asm-powerpc/kexec.h | |
parent | 9ac49d22138348198f729f07371ffb11991368e6 (diff) |
[PATCH] powerpc: fix for kexec ppc32
- kexec.h is included from assembly code, thus C code must be properly
protected.
- (embedded) ppc32 systems use machine_kexec_simple whose declaration
vanished during a recent powerpc merge change.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Cc: <fastboot@osdl.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-powerpc/kexec.h')
-rw-r--r-- | include/asm-powerpc/kexec.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-powerpc/kexec.h b/include/asm-powerpc/kexec.h index 640a6459f2f4..bda2f217e6fe 100644 --- a/include/asm-powerpc/kexec.h +++ b/include/asm-powerpc/kexec.h | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #ifdef CONFIG_KEXEC | 34 | #ifdef CONFIG_KEXEC |
35 | 35 | ||
36 | #ifndef __ASSEMBLY__ | ||
36 | #ifdef __powerpc64__ | 37 | #ifdef __powerpc64__ |
37 | /* | 38 | /* |
38 | * This function is responsible for capturing register states if coming | 39 | * This function is responsible for capturing register states if coming |
@@ -104,7 +105,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs, | |||
104 | struct pt_regs *oldregs) { } | 105 | struct pt_regs *oldregs) { } |
105 | #endif /* !__powerpc64 __ */ | 106 | #endif /* !__powerpc64 __ */ |
106 | 107 | ||
107 | #ifndef __ASSEMBLY__ | ||
108 | #define MAX_NOTE_BYTES 1024 | 108 | #define MAX_NOTE_BYTES 1024 |
109 | 109 | ||
110 | #ifdef __powerpc64__ | 110 | #ifdef __powerpc64__ |
@@ -121,6 +121,8 @@ extern void default_machine_kexec(struct kimage *image); | |||
121 | extern int default_machine_kexec_prepare(struct kimage *image); | 121 | extern int default_machine_kexec_prepare(struct kimage *image); |
122 | extern void default_machine_crash_shutdown(struct pt_regs *regs); | 122 | extern void default_machine_crash_shutdown(struct pt_regs *regs); |
123 | 123 | ||
124 | extern void machine_kexec_simple(struct kimage *image); | ||
125 | |||
124 | #endif /* ! __ASSEMBLY__ */ | 126 | #endif /* ! __ASSEMBLY__ */ |
125 | #endif /* CONFIG_KEXEC */ | 127 | #endif /* CONFIG_KEXEC */ |
126 | #endif /* __KERNEL__ */ | 128 | #endif /* __KERNEL__ */ |