]>
Commit | Line | Data |
---|---|---|
f12a33c4 TG |
1 | // SPDX-License-Identifier: GPL-2.0 |
2 | // Copyright(c) 2018 Linus Torvalds. All rights reserved. | |
3 | // Copyright(c) 2018 Alexei Starovoitov. All rights reserved. | |
4 | // Copyright(c) 2018 Intel Corporation. All rights reserved. | |
5 | ||
6 | #ifndef _LINUX_NOSPEC_H | |
7 | #define _LINUX_NOSPEC_H | |
8 | #include <asm/barrier.h> | |
9 | ||
bd90e222 KC |
10 | struct task_struct; |
11 | ||
f12a33c4 | 12 | /* Speculation control prctl */ |
bd90e222 KC |
13 | int arch_prctl_spec_ctrl_get(struct task_struct *task, unsigned long which); |
14 | int arch_prctl_spec_ctrl_set(struct task_struct *task, unsigned long which, | |
15 | unsigned long ctrl); | |
32e3c480 TG |
16 | /* Speculation control for seccomp enforced mitigation */ |
17 | void arch_seccomp_spec_mitigate(struct task_struct *task); | |
f12a33c4 TG |
18 | |
19 | #endif /* _LINUX_NOSPEC_H */ |