blob: 92c34e517da18ef06348ee6a673181a4697ec66e [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Thomas Gleixner40c50c12017-03-10 13:17:18 +01002#ifndef _ASM_X86_PURGATORY_H
3#define _ASM_X86_PURGATORY_H
4
5#ifndef __ASSEMBLY__
6#include <linux/purgatory.h>
7
8extern void purgatory(void);
9/*
10 * These forward declarations serve two purposes:
11 *
12 * 1) Make sparse happy when checking arch/purgatory
13 * 2) Document that these are required to be global so the symbol
14 * lookup in kexec works
15 */
16extern unsigned long purgatory_backup_dest;
17extern unsigned long purgatory_backup_src;
18extern unsigned long purgatory_backup_sz;
19#endif /* __ASSEMBLY__ */
20
21#endif /* _ASM_PURGATORY_H */