]> Git Repo - linux.git/blobdiff - kernel/sys.c
arm64/sve: Add prctl controls for userspace vector length management
[linux.git] / kernel / sys.c
index 9aebc293501330ffdfef0b6ad53df155ae6b31ca..c541916b38c66d8763eebebad37a8293d1e4a60b 100644 (file)
 #ifndef SET_FP_MODE
 # define SET_FP_MODE(a,b)      (-EINVAL)
 #endif
+#ifndef SVE_SET_VL
+# define SVE_SET_VL(a)         (-EINVAL)
+#endif
+#ifndef SVE_GET_VL
+# define SVE_GET_VL()          (-EINVAL)
+#endif
 
 /*
  * this is where the system-wide overflow UID and GID are defined, for
@@ -2385,6 +2391,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
        case PR_GET_FP_MODE:
                error = GET_FP_MODE(me);
                break;
+       case PR_SVE_SET_VL:
+               error = SVE_SET_VL(arg2);
+               break;
+       case PR_SVE_GET_VL:
+               error = SVE_GET_VL();
+               break;
        default:
                error = -EINVAL;
                break;
This page took 0.03297 seconds and 4 git commands to generate.