about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/prctl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/sys/prctl.h b/include/sys/prctl.h
index aa0c7a88..af76408c 100644
--- a/include/sys/prctl.h
+++ b/include/sys/prctl.h
@@ -136,6 +136,15 @@ struct prctl_mm_map {
 #define PR_SVE_VL_LEN_MASK 0xffff
 #define PR_SVE_VL_INHERIT (1 << 17)
 
+#define PR_GET_SPECULATION_CTRL 52
+#define PR_SET_SPECULATION_CTRL 53
+#define PR_SPEC_STORE_BYPASS 0
+#define PR_SPEC_NOT_AFFECTED 0
+#define PR_SPEC_PRCTL (1UL << 0)
+#define PR_SPEC_ENABLE (1UL << 1)
+#define PR_SPEC_DISABLE (1UL << 2)
+#define PR_SPEC_FORCE_DISABLE (1UL << 3)
+
 int prctl (int, ...);
 
 #ifdef __cplusplus