blob: 5df09a0b80b801bcd6cc9adc780dec594d84ccad [file] [log] [blame]
Thomas Gleixneraa8c6242017-12-04 15:07:36 +01001// SPDX-License-Identifier: GPL-2.0
2#ifndef _ASM_X86_PTI_H
3#define _ASM_X86_PTI_H
4#ifndef __ASSEMBLY__
5
6#ifdef CONFIG_PAGE_TABLE_ISOLATION
7extern void pti_init(void);
8extern void pti_check_boottime_disable(void);
Joerg Roedelb9766902018-07-18 11:41:06 +02009extern void pti_finalize(void);
Thomas Gleixneraa8c6242017-12-04 15:07:36 +010010#else
11static inline void pti_check_boottime_disable(void) { }
Thomas Gleixneraa8c6242017-12-04 15:07:36 +010012#endif
13
14#endif /* __ASSEMBLY__ */
15#endif /* _ASM_X86_PTI_H */