projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a4a780
)
sys/prctl.h: add new PR_SVE_* macros from linux v4.15
author
Szabolcs Nagy
<nsz@port70.net>
Fri, 2 Feb 2018 21:04:51 +0000
(21:04 +0000)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 22 Feb 2018 23:49:34 +0000
(18:49 -0500)
PR_SVE_SET_VL and PR_SVE_GET_VL controls are new in linux commit
2d2123bc7c7f843aa9db87720de159a049839862
related PR_SVE_* macros were added in
7582e22038a266444eb87bc07c372592ad647439
include/sys/prctl.h
patch
|
blob
|
history
diff --git
a/include/sys/prctl.h
b/include/sys/prctl.h
index 24f4f8bdfb74c2582ee183b3ce548cf16f6c2d1a..aa0c7a88c64df078497a1ec81a317c8daca24144 100644
(file)
--- a/
include/sys/prctl.h
+++ b/
include/sys/prctl.h
@@
-130,6
+130,12
@@
struct prctl_mm_map {
#define PR_CAP_AMBIENT_LOWER 3
#define PR_CAP_AMBIENT_CLEAR_ALL 4
+#define PR_SVE_SET_VL 50
+#define PR_SVE_SET_VL_ONEXEC (1 << 18)
+#define PR_SVE_GET_VL 51
+#define PR_SVE_VL_LEN_MASK 0xffff
+#define PR_SVE_VL_INHERIT (1 << 17)
+
int prctl (int, ...);
#ifdef __cplusplus