mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
Automatically decide between nobp vs. expolines if the spectre_v2=auto kernel parameter is specified or CONFIG_EXPOLINE_AUTO=y is set. The decision made at boot time due to CONFIG_EXPOLINE_AUTO=y being set can be overruled with the nobp, nospec and spectre_v2 kernel parameters. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
17 lines
311 B
C
17 lines
311 B
C
/* 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_revert(s32 *start, s32 *end);
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _ASM_S390_EXPOLINE_H */
|