|
@@ -198,4 +198,13 @@ struct prctl_mm_map {
|
|
# define PR_CAP_AMBIENT_LOWER 3
|
|
# define PR_CAP_AMBIENT_LOWER 3
|
|
# define PR_CAP_AMBIENT_CLEAR_ALL 4
|
|
# define PR_CAP_AMBIENT_CLEAR_ALL 4
|
|
|
|
|
|
|
|
+/* arm64 Scalable Vector Extension controls */
|
|
|
|
+/* Flag values must be kept in sync with ptrace NT_ARM_SVE interface */
|
|
|
|
+#define PR_SVE_SET_VL 50 /* set task vector length */
|
|
|
|
+# define PR_SVE_SET_VL_ONEXEC (1 << 18) /* defer effect until exec */
|
|
|
|
+#define PR_SVE_GET_VL 51 /* get task vector length */
|
|
|
|
+/* Bits common to PR_SVE_SET_VL and PR_SVE_GET_VL */
|
|
|
|
+# define PR_SVE_VL_LEN_MASK 0xffff
|
|
|
|
+# define PR_SVE_VL_INHERIT (1 << 17) /* inherit across exec */
|
|
|
|
+
|
|
#endif /* _LINUX_PRCTL_H */
|
|
#endif /* _LINUX_PRCTL_H */
|