2018-01-26 11:46:47 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _ASM_S390_EXPOLINE_H
|
|
|
|
#define _ASM_S390_EXPOLINE_H
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2018-03-23 12:04:49 +00:00
|
|
|
extern int nospec_disable;
|
2018-01-26 11:46:47 +00:00
|
|
|
|
|
|
|
void nospec_init_branches(void);
|
2018-04-11 06:35:23 +00:00
|
|
|
void nospec_auto_detect(void);
|
2018-03-23 12:04:49 +00:00
|
|
|
void nospec_revert(s32 *start, s32 *end);
|
2018-01-26 11:46:47 +00:00
|
|
|
|
2021-10-04 06:51:06 +00:00
|
|
|
static inline bool nospec_uses_trampoline(void)
|
|
|
|
{
|
|
|
|
return __is_defined(CC_USING_EXPOLINE) && !nospec_disable;
|
|
|
|
}
|
|
|
|
|
2018-01-26 11:46:47 +00:00
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#endif /* _ASM_S390_EXPOLINE_H */
|