diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-03-30 18:45:41 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-03-30 18:45:41 +0000 |
commit | e8e0bee5dd414bb6d5ee7e6a1fa37f330dcb38e4 (patch) | |
tree | 2a22ed2642b6dc5da6474928ca51dfea783d5c5b /sysdeps/unix/sysv/linux/i386/dl-procinfo.h | |
parent | 001426b8993e21615a756fcabcbead8a62a2125c (diff) | |
download | glibc-e8e0bee5dd414bb6d5ee7e6a1fa37f330dcb38e4.tar.gz glibc-e8e0bee5dd414bb6d5ee7e6a1fa37f330dcb38e4.tar.xz glibc-e8e0bee5dd414bb6d5ee7e6a1fa37f330dcb38e4.zip |
Update.
1998-03-30 Ulrich Drepper <drepper@cygnus.com> * sysdeps/generic/dl-sysdep.c (_dl_important_hwcaps): New function. * sysdeps/generic/dl-procinfo.h (HWCAP_IMPORTANT): New definition. * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_hwcap_string): New function. (HWCAP_IMPORTANT): New definition. 1998-03-30 17:26 H.J. Lu <hjl@gnu.org> * elf/dl-open.c (_dl_open): Fix a typo. (_dl_global_scope_alloc): Make it static. * nss/getXXent_r.c (REENTRANT_GETNAME): Avoid endless loop.
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/dl-procinfo.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/dl-procinfo.h | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h index 48d5cd31fa..85baf74496 100644 --- a/sysdeps/unix/sysv/linux/i386/dl-procinfo.h +++ b/sysdeps/unix/sysv/linux/i386/dl-procinfo.h @@ -21,19 +21,20 @@ #ifndef _DL_PROCINFO_H #define _DL_PROCINFO_H 1 +static const char *x86_cap_flags[] = + { + "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", + "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov", + "fcmov", "17", "18", "19", "20", "21", "22", "mmx", + "osfxsr", "25", "26", "27", "28", "29", "30", "amd3d" + }; + static inline int __attribute__ ((unused)) _dl_procinfo (int word) { /* This table should match the information from arch/i386/kernel/setup.c in the kernel sources. */ - static const char *x86_cap_flags[] = - { - "fpu", "vme", "de", "pse", "tsc", "msr", "pae", "mce", - "cx8", "apic", "10", "sep", "mtrr", "pge", "mca", "cmov", - "fcmov", "17", "18", "19", "20", "21", "22", "mmx", - "cxmmx", "25", "26", "27", "28", "29", "30", "amd3d" - }; int i; _dl_sysdep_message ("AT_HWCAP: ", NULL); @@ -47,6 +48,13 @@ _dl_procinfo (int word) return 0; } +static inline const char * +__attribute__ ((unused)) +_dl_hwcap_string (int idx) +{ + return x86_cap_flags[idx]; +}; + enum { HWCAP_I386_FPU = 1 << 0, @@ -66,8 +74,11 @@ enum HWCAP_I386_CMOV = 1 << 15, HWCAP_I386_FCMOV = 1 << 16, HWCAP_I386_MMX = 1 << 23, - HWCAP_I386_CXMMX = 1 << 24, - HWCAP_I386_AMD3D = 1 << 31 + HWCAP_I386_OSFXSR = 1 << 24, + HWCAP_I386_AMD3D = 1 << 31, + + /* XXX Which others to add here? */ + HWCAP_IMPORTANT = (HWCAP_I386_MMX) }; #endif /* dl-procinfo.h */ |