aboutsummaryrefslogtreecommitdiff
path: root/ports
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 /ports
parentc204ab284bc3ef492f5a5201bd6131032bfd471a (diff)
downloadglibc-rsa/hwcap2_v4.tar
glibc-rsa/hwcap2_v4.tar.gz
glibc-rsa/hwcap2_v4.tar.bz2
glibc-rsa/hwcap2_v4.zip
Add support for AT_HWCAP2.rsa/hwcap2_v4
Diffstat (limited to 'ports')
-rw-r--r--ports/ChangeLog.alpha5
-rw-r--r--ports/ChangeLog.arm5
-rw-r--r--ports/ChangeLog.mips5
-rw-r--r--ports/sysdeps/alpha/dl-procinfo.h2
-rw-r--r--ports/sysdeps/mips/dl-procinfo.h2
-rw-r--r--ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h6
6 files changed, 22 insertions, 3 deletions
diff --git a/ports/ChangeLog.alpha b/ports/ChangeLog.alpha
index 3646955a03..6ef2b120c2 100644
--- a/ports/ChangeLog.alpha
+++ b/ports/ChangeLog.alpha
@@ -1,3 +1,8 @@
+2013-06-13 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
+
+ * sysdeps/alpha/dl-procinfo.h (_dl_procinfo): Add TYPE parameter for
+ AT_HWCAP2 support.
+
2013-06-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/alpha/bits/atomic.h: Remove trailing whitespace.
diff --git a/ports/ChangeLog.arm b/ports/ChangeLog.arm
index 28ebfdf5ba..f149f93f98 100644
--- a/ports/ChangeLog.arm
+++ b/ports/ChangeLog.arm
@@ -1,3 +1,8 @@
+2013-06-13 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
+
+ * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo): Add
+ TYPE parameter for AT_HWCAP2 support. Make WORD unsigned.
+
2013-06-11 Joseph Myers <joseph@codesourcery.com>
* sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index 487bd02977..c2e29c9471 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -1,3 +1,8 @@
+2013-06-13 Ryan S. Arnold <rsa@linux.vnet.ibm.com>
+
+ * sysdeps/mips/dl-procinfo.h (_dl_procinfo): Add TYPE parameter for
+ AT_HWCAP2 support.
+
2013-06-05 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/fpu/fgetexcptflg.c: Remove trailing whitespace.
diff --git a/ports/sysdeps/alpha/dl-procinfo.h b/ports/sysdeps/alpha/dl-procinfo.h
index 523d966761..0344dbc968 100644
--- a/ports/sysdeps/alpha/dl-procinfo.h
+++ b/ports/sysdeps/alpha/dl-procinfo.h
@@ -51,7 +51,7 @@ _dl_string_platform (const char *str)
};
/* We cannot provide a general printing function. */
-#define _dl_procinfo(word) -1
+#define _dl_procinfo(type, word) -1
/* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) ""
diff --git a/ports/sysdeps/mips/dl-procinfo.h b/ports/sysdeps/mips/dl-procinfo.h
index 5cc9a44446..e96550c402 100644
--- a/ports/sysdeps/mips/dl-procinfo.h
+++ b/ports/sysdeps/mips/dl-procinfo.h
@@ -51,7 +51,7 @@ _dl_string_platform (const char *str)
};
/* We cannot provide a general printing function. */
-#define _dl_procinfo(word) -1
+#define _dl_procinfo(type, word) -1
/* There are no hardware capabilities defined. */
#define _dl_hwcap_string(idx) ""
diff --git a/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h b/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
index 161e86c796..8f718144b8 100644
--- a/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
+++ b/ports/sysdeps/unix/sysv/linux/arm/dl-procinfo.h
@@ -31,10 +31,14 @@
static inline int
__attribute__ ((unused))
-_dl_procinfo (int word)
+_dl_procinfo (unsigned int type, unsigned int word)
{
int i;
+ /* Unused for now. */
+ if (type == AT_HWCAP2)
+ return 0;
+
_dl_printf ("AT_HWCAP: ");
for (i = 0; i < _DL_HWCAP_COUNT; ++i)