diff options
author | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-06-27 15:48:35 -0500 |
---|---|---|
committer | Ryan S. Arnold <rsa@linux.vnet.ibm.com> | 2013-06-27 15:48:35 -0500 |
commit | 0cfec279fbb3c25b9c37e35e303ad4cdab77ed81 (patch) | |
tree | bd6898ac31cecffe9ea408e08113eb6e648ad9a9 /misc/getauxval.c | |
parent | fe114d206479a36369d732ea260e81a686fdbb0b (diff) | |
download | glibc-rsa/hwcap2_v5.zip glibc-rsa/hwcap2_v5.tar.gz glibc-rsa/hwcap2_v5.tar.bz2 |
Add GLRO(dl_hwcap2), conditional on per platform HWCAP2_AVAIL.rsa/hwcap2_v5
Diffstat (limited to 'misc/getauxval.c')
-rw-r--r-- | misc/getauxval.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/getauxval.c b/misc/getauxval.c index 4321e37..81474ee 100644 --- a/misc/getauxval.c +++ b/misc/getauxval.c @@ -17,7 +17,7 @@ #include <sys/auxv.h> #include <ldsodefs.h> - +#include <dl-hwcap2.h> unsigned long int __getauxval (unsigned long int type) @@ -26,6 +26,10 @@ __getauxval (unsigned long int type) if (type == AT_HWCAP) return GLRO(dl_hwcap); +#if HWCAP2_AVAIL + else if (type == AT_HWCAP2) + return GLRO(dl_hwcap2); +#endif for (p = GLRO(dl_auxv); p->a_type != AT_NULL; p++) if (p->a_type == type) |