Commit 1595fe29 authored by Will Deacon's avatar Will Deacon

Revert "arm64: kexec: make dtb_mem always enabled"

Adding crash dump support to 'kexec_file' is going to extend 'struct
kimage_arch' with more 'kexec_file'-specific members. The cleanup here
then starts to get in the way, so revert it.

This reverts commit 62151678.
Reported-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent a2c2e679
...@@ -90,14 +90,14 @@ static inline void crash_prepare_suspend(void) {} ...@@ -90,14 +90,14 @@ static inline void crash_prepare_suspend(void) {}
static inline void crash_post_resume(void) {} static inline void crash_post_resume(void) {}
#endif #endif
#ifdef CONFIG_KEXEC_FILE
#define ARCH_HAS_KIMAGE_ARCH #define ARCH_HAS_KIMAGE_ARCH
struct kimage_arch { struct kimage_arch {
void *dtb; void *dtb;
phys_addr_t dtb_mem; unsigned long dtb_mem;
}; };
#ifdef CONFIG_KEXEC_FILE
extern const struct kexec_file_ops kexec_image_ops; extern const struct kexec_file_ops kexec_image_ops;
struct kimage; struct kimage;
......
...@@ -203,7 +203,11 @@ void machine_kexec(struct kimage *kimage) ...@@ -203,7 +203,11 @@ void machine_kexec(struct kimage *kimage)
* In kexec_file case, the kernel starts directly without purgatory. * In kexec_file case, the kernel starts directly without purgatory.
*/ */
cpu_soft_restart(reboot_code_buffer_phys, kimage->head, kimage->start, cpu_soft_restart(reboot_code_buffer_phys, kimage->head, kimage->start,
kimage->arch.dtb_mem); #ifdef CONFIG_KEXEC_FILE
kimage->arch.dtb_mem);
#else
0);
#endif
BUG(); /* Should never get here. */ BUG(); /* Should never get here. */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment