diff options
Diffstat (limited to 'arch/powerpc/include/asm/kexec.h')
-rw-r--r-- | arch/powerpc/include/asm/kexec.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/kexec.h b/arch/powerpc/include/asm/kexec.h index a46f5f45570c..6c3b71502fbc 100644 --- a/arch/powerpc/include/asm/kexec.h +++ b/arch/powerpc/include/asm/kexec.h | |||
@@ -53,7 +53,7 @@ | |||
53 | 53 | ||
54 | typedef void (*crash_shutdown_t)(void); | 54 | typedef void (*crash_shutdown_t)(void); |
55 | 55 | ||
56 | #ifdef CONFIG_KEXEC | 56 | #ifdef CONFIG_KEXEC_CORE |
57 | 57 | ||
58 | /* | 58 | /* |
59 | * This function is responsible for capturing register states if coming | 59 | * This function is responsible for capturing register states if coming |
@@ -91,7 +91,17 @@ static inline bool kdump_in_progress(void) | |||
91 | return crashing_cpu >= 0; | 91 | return crashing_cpu >= 0; |
92 | } | 92 | } |
93 | 93 | ||
94 | #else /* !CONFIG_KEXEC */ | 94 | #ifdef CONFIG_KEXEC_FILE |
95 | extern struct kexec_file_ops kexec_elf64_ops; | ||
96 | |||
97 | int setup_purgatory(struct kimage *image, const void *slave_code, | ||
98 | const void *fdt, unsigned long kernel_load_addr, | ||
99 | unsigned long fdt_load_addr); | ||
100 | int setup_new_fdt(void *fdt, unsigned long initrd_load_addr, | ||
101 | unsigned long initrd_len, const char *cmdline); | ||
102 | #endif /* CONFIG_KEXEC_FILE */ | ||
103 | |||
104 | #else /* !CONFIG_KEXEC_CORE */ | ||
95 | static inline void crash_kexec_secondary(struct pt_regs *regs) { } | 105 | static inline void crash_kexec_secondary(struct pt_regs *regs) { } |
96 | 106 | ||
97 | static inline int overlaps_crashkernel(unsigned long start, unsigned long size) | 107 | static inline int overlaps_crashkernel(unsigned long start, unsigned long size) |
@@ -116,7 +126,7 @@ static inline bool kdump_in_progress(void) | |||
116 | return false; | 126 | return false; |
117 | } | 127 | } |
118 | 128 | ||
119 | #endif /* CONFIG_KEXEC */ | 129 | #endif /* CONFIG_KEXEC_CORE */ |
120 | #endif /* ! __ASSEMBLY__ */ | 130 | #endif /* ! __ASSEMBLY__ */ |
121 | #endif /* __KERNEL__ */ | 131 | #endif /* __KERNEL__ */ |
122 | #endif /* _ASM_POWERPC_KEXEC_H */ | 132 | #endif /* _ASM_POWERPC_KEXEC_H */ |