Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef _ASM_X86_CRASH_H |
| 3 | #define _ASM_X86_CRASH_H |
| 4 | |
Olivier Deprez | 0e64123 | 2021-09-23 10:07:05 +0200 | [diff] [blame^] | 5 | struct kimage; |
| 6 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | int crash_load_segments(struct kimage *image); |
| 8 | int crash_copy_backup_region(struct kimage *image); |
| 9 | int crash_setup_memmap_entries(struct kimage *image, |
| 10 | struct boot_params *params); |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame] | 11 | void crash_smp_send_stop(void); |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 12 | |
Olivier Deprez | 0e64123 | 2021-09-23 10:07:05 +0200 | [diff] [blame^] | 13 | #ifdef CONFIG_KEXEC_CORE |
| 14 | void __init crash_reserve_low_1M(void); |
| 15 | #else |
| 16 | static inline void __init crash_reserve_low_1M(void) { } |
| 17 | #endif |
| 18 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 19 | #endif /* _ASM_X86_CRASH_H */ |