diff options
Diffstat (limited to 'include/linux/pti.h')
-rw-r--r-- | include/linux/pti.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/pti.h b/include/linux/pti.h new file mode 100644 index 000000000..1a941efca --- /dev/null +++ b/include/linux/pti.h @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 +#ifndef _INCLUDE_PTI_H +#define _INCLUDE_PTI_H + +#ifdef CONFIG_PAGE_TABLE_ISOLATION +#include <asm/pti.h> +#else +static inline void pti_init(void) { } +static inline void pti_finalize(void) { } +#endif + +#endif |