blob: 88eadd08ad708b7f8ee1e971659b4b7dec78b792 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_CRASH_H
3#define _ASM_X86_CRASH_H
4
Olivier Deprez0e641232021-09-23 10:07:05 +02005struct kimage;
6
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007int crash_load_segments(struct kimage *image);
8int crash_copy_backup_region(struct kimage *image);
9int crash_setup_memmap_entries(struct kimage *image,
10 struct boot_params *params);
David Brazdil0f672f62019-12-10 10:32:29 +000011void crash_smp_send_stop(void);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012
Olivier Deprez0e641232021-09-23 10:07:05 +020013#ifdef CONFIG_KEXEC_CORE
14void __init crash_reserve_low_1M(void);
15#else
16static inline void __init crash_reserve_low_1M(void) { }
17#endif
18
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000019#endif /* _ASM_X86_CRASH_H */