about summary refs log tree commit diff
path: root/arch/aarch64
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2019-08-20 10:20:03 +0000
committerRich Felker <dalias@aerifal.cx>2019-09-11 10:40:41 -0400
commit9920bf45cc741ec0ab474fa67584f4dec023b6d0 (patch)
tree641519b43b5877c6f7fef04a26d4eebeb53506d8 /arch/aarch64
parentb60763092eacceedd799a7eb7c1a7c4e3f7aee5e (diff)
downloadmusl-9920bf45cc741ec0ab474fa67584f4dec023b6d0.tar.gz
musl-9920bf45cc741ec0ab474fa67584f4dec023b6d0.tar.xz
musl-9920bf45cc741ec0ab474fa67584f4dec023b6d0.zip
aarch64: add HWCAP2 flags from linux v5.2
AT_HWCAP2 flags, see

  linux commit 671db581815faf17cbedd7fcbc48823a247d90b1
  arm64: Expose DC CVADP to userspace

  linux commit 06a916feca2b262ab0c1a2aeb68882f4b1108a07
  arm64: Expose SVE2 features for userspace
Diffstat (limited to 'arch/aarch64')
-rw-r--r--arch/aarch64/bits/hwcap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/aarch64/bits/hwcap.h b/arch/aarch64/bits/hwcap.h
index ad670914..a7484028 100644
--- a/arch/aarch64/bits/hwcap.h
+++ b/arch/aarch64/bits/hwcap.h
@@ -30,3 +30,11 @@
 #define HWCAP_SB		(1 << 29)
 #define HWCAP_PACA		(1 << 30)
 #define HWCAP_PACG		(1UL << 31)
+
+#define HWCAP2_DCPODP		(1 << 0)
+#define HWCAP2_SVE2		(1 << 1)
+#define HWCAP2_SVEAES		(1 << 2)
+#define HWCAP2_SVEPMULL		(1 << 3)
+#define HWCAP2_SVEBITPERM	(1 << 4)
+#define HWCAP2_SVESHA3		(1 << 5)
+#define HWCAP2_SVESM4		(1 << 6)