nospec-branch.h 455 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_S390_EXPOLINE_H
  3. #define _ASM_S390_EXPOLINE_H
  4. #ifndef __ASSEMBLY__
  5. #include <linux/types.h>
  6. extern int nospec_disable;
  7. void nospec_init_branches(void);
  8. void nospec_auto_detect(void);
  9. void nospec_revert(s32 *start, s32 *end);
  10. static inline bool nospec_uses_trampoline(void)
  11. {
  12. return __is_defined(CC_USING_EXPOLINE) && !nospec_disable;
  13. }
  14. #endif /* __ASSEMBLY__ */
  15. #endif /* _ASM_S390_EXPOLINE_H */