We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87834d commit ad07149Copy full SHA for ad07149
tools/include/uapi/linux/prctl.h
@@ -294,4 +294,15 @@ struct prctl_mm_map {
294
295
#define PR_SET_MEMORY_MERGE 67
296
#define PR_GET_MEMORY_MERGE 68
297
+
298
+#define PR_RISCV_V_SET_CONTROL 69
299
+#define PR_RISCV_V_GET_CONTROL 70
300
+# define PR_RISCV_V_VSTATE_CTRL_DEFAULT 0
301
+# define PR_RISCV_V_VSTATE_CTRL_OFF 1
302
+# define PR_RISCV_V_VSTATE_CTRL_ON 2
303
+# define PR_RISCV_V_VSTATE_CTRL_INHERIT (1 << 4)
304
+# define PR_RISCV_V_VSTATE_CTRL_CUR_MASK 0x3
305
+# define PR_RISCV_V_VSTATE_CTRL_NEXT_MASK 0xc
306
+# define PR_RISCV_V_VSTATE_CTRL_MASK 0x1f
307
308
#endif /* _LINUX_PRCTL_H */
0 commit comments