blob: f58de66091e5ea0aee91ced2a76e6a937f67d2e6 [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);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00008int crash_setup_memmap_entries(struct kimage *image,
9 struct boot_params *params);
David Brazdil0f672f62019-12-10 10:32:29 +000010void crash_smp_send_stop(void);
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011
Olivier Deprez0e641232021-09-23 10:07:05 +020012#ifdef CONFIG_KEXEC_CORE
13void __init crash_reserve_low_1M(void);
14#else
15static inline void __init crash_reserve_low_1M(void) { }
16#endif
17
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000018#endif /* _ASM_X86_CRASH_H */