aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/kexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/kexec.h')
-rw-r--r--include/asm-powerpc/kexec.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/include/asm-powerpc/kexec.h b/include/asm-powerpc/kexec.h
index c72ffc709ea8..4263af3cadfd 100644
--- a/include/asm-powerpc/kexec.h
+++ b/include/asm-powerpc/kexec.h
@@ -1,5 +1,6 @@
1#ifndef _ASM_POWERPC_KEXEC_H 1#ifndef _ASM_POWERPC_KEXEC_H
2#define _ASM_POWERPC_KEXEC_H 2#define _ASM_POWERPC_KEXEC_H
3#ifdef __KERNEL__
3 4
4/* 5/*
5 * Maximum page that is mapped directly into kernel memory. 6 * Maximum page that is mapped directly into kernel memory.
@@ -30,8 +31,12 @@
30#define KEXEC_ARCH KEXEC_ARCH_PPC 31#define KEXEC_ARCH KEXEC_ARCH_PPC
31#endif 32#endif
32 33
34#define HAVE_ARCH_COPY_OLDMEM_PAGE
35
33#ifndef __ASSEMBLY__ 36#ifndef __ASSEMBLY__
34 37
38#ifdef CONFIG_KEXEC
39
35#define MAX_NOTE_BYTES 1024 40#define MAX_NOTE_BYTES 1024
36typedef u32 note_buf_t[MAX_NOTE_BYTES / sizeof(u32)]; 41typedef u32 note_buf_t[MAX_NOTE_BYTES / sizeof(u32)];
37 42
@@ -41,10 +46,18 @@ extern note_buf_t crash_notes[];
41extern void kexec_smp_wait(void); /* get and clear naca physid, wait for 46extern void kexec_smp_wait(void); /* get and clear naca physid, wait for
42 master to copy new code to 0 */ 47 master to copy new code to 0 */
43extern void __init kexec_setup(void); 48extern void __init kexec_setup(void);
44#else 49extern int crashing_cpu;
50extern void crash_send_ipi(void (*crash_ipi_callback)(struct pt_regs *));
51#endif /* __powerpc64 __ */
52
45struct kimage; 53struct kimage;
46extern void machine_kexec_simple(struct kimage *image); 54struct pt_regs;
47#endif 55extern void default_machine_kexec(struct kimage *image);
56extern int default_machine_kexec_prepare(struct kimage *image);
57extern void default_machine_crash_shutdown(struct pt_regs *regs);
58
59#endif /* !CONFIG_KEXEC */
48 60
49#endif /* ! __ASSEMBLY__ */ 61#endif /* ! __ASSEMBLY__ */
62#endif /* __KERNEL__ */
50#endif /* _ASM_POWERPC_KEXEC_H */ 63#endif /* _ASM_POWERPC_KEXEC_H */