18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_ESPFIX_H 38c2ecf20Sopenharmony_ci#define _ASM_X86_ESPFIX_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifdef CONFIG_X86_ESPFIX64 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include <asm/percpu.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciDECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_stack); 108c2ecf20Sopenharmony_ciDECLARE_PER_CPU_READ_MOSTLY(unsigned long, espfix_waddr); 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciextern void init_espfix_bsp(void); 138c2ecf20Sopenharmony_ciextern void init_espfix_ap(int cpu); 148c2ecf20Sopenharmony_ci#else 158c2ecf20Sopenharmony_cistatic inline void init_espfix_ap(int cpu) { } 168c2ecf20Sopenharmony_ci#endif 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* _ASM_X86_ESPFIX_H */ 19