summaryrefslogtreecommitdiff
path: root/misc/getauxval.c
diff options
context:
space:
mode:
authorRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-13 14:13:39 -0500
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-13 14:13:39 -0500
commit1212598c9429674994da64b3a17375471d809677 (patch)
tree7bde46b6ded3a270df7a8b649414eb75b64240f4 /misc/getauxval.c
parentc204ab284bc3ef492f5a5201bd6131032bfd471a (diff)
downloadglibc-rsa/hwcap2_v4.tar.gz
Add support for AT_HWCAP2.rsa/hwcap2_v4
Diffstat (limited to 'misc/getauxval.c')
-rw-r--r--misc/getauxval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/getauxval.c b/misc/getauxval.c
index 4321e3718a..0d699229f6 100644
--- a/misc/getauxval.c
+++ b/misc/getauxval.c
@@ -26,6 +26,8 @@ __getauxval (unsigned long int type)
if (type == AT_HWCAP)
return GLRO(dl_hwcap);
+ else if (type == AT_HWCAP2)
+ return GLRO(dl_hwcap) >> 32;
for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++)
if (p->a_type == type)