about summary refs log tree commit diff
path: root/sysdeps/sparc/dl-procinfo.h
diff options
context:
space:
mode:
authorRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-27 15:48:35 -0500
committerRyan S. Arnold <rsa@linux.vnet.ibm.com>2013-06-27 15:48:35 -0500
commit0cfec279fbb3c25b9c37e35e303ad4cdab77ed81 (patch)
treebd6898ac31cecffe9ea408e08113eb6e648ad9a9 /sysdeps/sparc/dl-procinfo.h
parentfe114d206479a36369d732ea260e81a686fdbb0b (diff)
downloadglibc-rsa/hwcap2_v5.tar.gz
glibc-rsa/hwcap2_v5.tar.xz
glibc-rsa/hwcap2_v5.zip
Add GLRO(dl_hwcap2), conditional on per platform HWCAP2_AVAIL. rsa/hwcap2_v5
Diffstat (limited to 'sysdeps/sparc/dl-procinfo.h')
-rw-r--r--sysdeps/sparc/dl-procinfo.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/sparc/dl-procinfo.h b/sysdeps/sparc/dl-procinfo.h
index a18b099586..35065c4371 100644
--- a/sysdeps/sparc/dl-procinfo.h
+++ b/sysdeps/sparc/dl-procinfo.h
@@ -27,10 +27,14 @@
 
 static inline int
 __attribute__ ((unused))
-_dl_procinfo (int word)
+_dl_procinfo (unsigned int type, unsigned long int word)
 {
   int i;
 
+  /* Handle in a more sophisticated manner if HWCAP2 is supported.  */
+  if (type == AT_HWCAP2)
+    return 0;
+
   _dl_printf ("AT_HWCAP:   ");
 
   for (i = 0; i < _DL_HWCAP_COUNT; ++i)