nospec-branch.h (6e5bea1c93062a43bc0435ae6cd589448094edaa) nospec-branch.h (8754e67ad4ac692c67ff1f99c0d07156f04ae40c)
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _ASM_X86_NOSPEC_BRANCH_H_
4#define _ASM_X86_NOSPEC_BRANCH_H_
5
6#include <linux/static_key.h>
7#include <linux/objtool.h>
8#include <linux/linkage.h>

--- 322 unchanged lines hidden (view full) ---

331.endm
332#else
333#define CLEAR_BRANCH_HISTORY
334#define CLEAR_BRANCH_HISTORY_VMEXIT
335#endif
336
337#else /* __ASSEMBLER__ */
338
1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifndef _ASM_X86_NOSPEC_BRANCH_H_
4#define _ASM_X86_NOSPEC_BRANCH_H_
5
6#include <linux/static_key.h>
7#include <linux/objtool.h>
8#include <linux/linkage.h>

--- 322 unchanged lines hidden (view full) ---

331.endm
332#else
333#define CLEAR_BRANCH_HISTORY
334#define CLEAR_BRANCH_HISTORY_VMEXIT
335#endif
336
337#else /* __ASSEMBLER__ */
338
339#define ITS_THUNK_SIZE 64
340
339typedef u8 retpoline_thunk_t[RETPOLINE_THUNK_SIZE];
341typedef u8 retpoline_thunk_t[RETPOLINE_THUNK_SIZE];
342typedef u8 its_thunk_t[ITS_THUNK_SIZE];
340extern retpoline_thunk_t __x86_indirect_thunk_array[];
341extern retpoline_thunk_t __x86_indirect_call_thunk_array[];
342extern retpoline_thunk_t __x86_indirect_jump_thunk_array[];
343extern retpoline_thunk_t __x86_indirect_thunk_array[];
344extern retpoline_thunk_t __x86_indirect_call_thunk_array[];
345extern retpoline_thunk_t __x86_indirect_jump_thunk_array[];
346extern its_thunk_t __x86_indirect_its_thunk_array[];
343
344#ifdef CONFIG_MITIGATION_RETHUNK
345extern void __x86_return_thunk(void);
346#else
347static inline void __x86_return_thunk(void) {}
348#endif
349
350#ifdef CONFIG_MITIGATION_UNRET_ENTRY

--- 256 unchanged lines hidden ---
347
348#ifdef CONFIG_MITIGATION_RETHUNK
349extern void __x86_return_thunk(void);
350#else
351static inline void __x86_return_thunk(void) {}
352#endif
353
354#ifdef CONFIG_MITIGATION_UNRET_ENTRY

--- 256 unchanged lines hidden ---