1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 220b68535SH. Peter Anvin #ifndef _ASM_X86_ESPFIX_H 3e1fe9ed8SH. Peter Anvin #define _ASM_X86_ESPFIX_H 4e1fe9ed8SH. Peter Anvin 5*613e396bSThomas Gleixner #ifdef CONFIG_X86_ESPFIX64 6e1fe9ed8SH. Peter Anvin 7e1fe9ed8SH. Peter Anvin #include <asm/percpu.h> 8e1fe9ed8SH. Peter Anvin 9e1fe9ed8SH. Peter Anvin DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_stack); 10e1fe9ed8SH. Peter Anvin DECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_waddr); 11e1fe9ed8SH. Peter Anvin 12e1fe9ed8SH. Peter Anvin extern void init_espfix_bsp(void); 131db87563SZhu Guihua extern void init_espfix_ap(int cpu); 14*613e396bSThomas Gleixner #else init_espfix_ap(int cpu)15*613e396bSThomas Gleixnerstatic inline void init_espfix_ap(int cpu) { } 16*613e396bSThomas Gleixner #endif 17e1fe9ed8SH. Peter Anvin 18e1fe9ed8SH. Peter Anvin #endif /* _ASM_X86_ESPFIX_H */ 19