提交 13c73da7 编写于 作者: S Szabolcs Nagy 提交者: Rich Felker

sys/prctl.h: add PR_SPEC_INDIRECT_BRANCH from linux v4.20

prctls to allow per task control of indirect branch speculation on x86.

added in linux commit 9137bb27e60e554dab694eafa4cca241fa3a694f
上级 0b026bbd
...@@ -139,6 +139,7 @@ struct prctl_mm_map { ...@@ -139,6 +139,7 @@ struct prctl_mm_map {
#define PR_GET_SPECULATION_CTRL 52 #define PR_GET_SPECULATION_CTRL 52
#define PR_SET_SPECULATION_CTRL 53 #define PR_SET_SPECULATION_CTRL 53
#define PR_SPEC_STORE_BYPASS 0 #define PR_SPEC_STORE_BYPASS 0
#define PR_SPEC_INDIRECT_BRANCH 1
#define PR_SPEC_NOT_AFFECTED 0 #define PR_SPEC_NOT_AFFECTED 0
#define PR_SPEC_PRCTL (1UL << 0) #define PR_SPEC_PRCTL (1UL << 0)
#define PR_SPEC_ENABLE (1UL << 1) #define PR_SPEC_ENABLE (1UL << 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册