summaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/nospec-branch.h
blob: 82725cf783c70cfcaf511931be6b26dfc4522303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_S390_EXPOLINE_H
#define _ASM_S390_EXPOLINE_H

#ifndef __ASSEMBLY__

#include <linux/types.h>

extern int nospec_disable;

void nospec_init_branches(void);
void nospec_auto_detect(void);
void nospec_revert(s32 *start, s32 *end);

static inline bool nospec_uses_trampoline(void)
{
	return __is_defined(CC_USING_EXPOLINE) && !nospec_disable;
}

#endif /* __ASSEMBLY__ */

#endif /* _ASM_S390_EXPOLINE_H */