1/* SPDX-License-Identifier: GPL-2.0 */
2#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 */
22