This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 2/4] S/390: Update hwcaps flags
- From: "Andreas Krebbel" <krebbel at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 28 Apr 2009 16:42:16 +0200
- Subject: [PATCH 2/4] S/390: Update hwcaps flags
Hi,
the attached patch updates the S/390 hwcaps flags to keep pace with
the latest kernel changes. It adds the z10 cpu type and the edat and
etf3enh hwcap fields.
Bye,
-Andreas-
2009-04-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): "edat" and
"etf3enh" added.
(_dl_s390_platforms): "z10" added.
* sysdeps/s390/dl-procinfo.h (_DL_HWCAP_COUNT,
_DL_PLATFORMS_COUNT): Increased for the new entries.
(HWCAP enum): HWCAP_S390_EDAT and HWCAP_S390_ETF3EH added.
Index: libc/sysdeps/s390/dl-procinfo.c
===================================================================
--- libc.orig/sysdeps/s390/dl-procinfo.c
+++ libc/sysdeps/s390/dl-procinfo.c
@@ -47,11 +47,11 @@
#if !defined PROCINFO_DECL && defined SHARED
._dl_s390_cap_flags
#else
-PROCINFO_CLASS const char _dl_s390_cap_flags[7][6]
+PROCINFO_CLASS const char _dl_s390_cap_flags[9][8]
#endif
#ifndef PROCINFO_DECL
= {
- "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp"
+ "esan3", "zarch", "stfle", "msa", "ldisp", "eimm", "dfp", "edat", "etf3enh"
}
#endif
#if !defined SHARED || defined PROCINFO_DECL
@@ -63,11 +63,11 @@ PROCINFO_CLASS const char _dl_s390_cap_f
#if !defined PROCINFO_DECL && defined SHARED
._dl_s390_platforms
#else
-PROCINFO_CLASS const char _dl_s390_platforms[4][7]
+PROCINFO_CLASS const char _dl_s390_platforms[5][7]
#endif
#ifndef PROCINFO_DECL
= {
- "g5", "z900", "z990", "z9-109"
+ "g5", "z900", "z990", "z9-109", "z10"
}
#endif
#if !defined SHARED || defined PROCINFO_DECL
Index: libc/sysdeps/s390/dl-procinfo.h
===================================================================
--- libc.orig/sysdeps/s390/dl-procinfo.h
+++ libc/sysdeps/s390/dl-procinfo.h
@@ -22,9 +22,9 @@
#define _DL_PROCINFO_H 1
#include <ldsodefs.h>
-#define _DL_HWCAP_COUNT 7
+#define _DL_HWCAP_COUNT 9
-#define _DL_PLATFORMS_COUNT 4
+#define _DL_PLATFORMS_COUNT 5
/* The kernel provides up to 32 capability bits with elf_hwcap. */
#define _DL_FIRST_PLATFORM 32
@@ -45,6 +45,8 @@ enum
HWCAP_S390_LDISP = 1 << 4,
HWCAP_S390_EIMM = 1 << 5,
HWCAP_S390_DFP = 1 << 6,
+ HWCAP_S390_EDAT = 1 << 7,
+ HWCAP_S390_ETF3EH = 1 << 8,
};
#define HWCAP_IMPORTANT (HWCAP_S390_ZARCH | HWCAP_S390_LDISP \