aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-03-13 22:53:16 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-03-13 22:53:16 +0000
commit5b186cd99961b2f60701dee128c9a58fcbd6d8e6 (patch)
tree0f7d7330b0f922f05e3ec4373fdd5fce57449cbc /winsup/cygwin/fhandler_proc.cc
parentc58555c70f5e5294f7b7841576163053979d1211 (diff)
downloadnewlib-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.zip
newlib-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.tar.gz
newlib-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.tar.bz2
* autoload.cc (IsProcessorFeaturePresent): Add.
* fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
Diffstat (limited to 'winsup/cygwin/fhandler_proc.cc')
-rw-r--r--winsup/cygwin/fhandler_proc.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc
index c5a5f80..9f7b1a8 100644
--- a/winsup/cygwin/fhandler_proc.cc
+++ b/winsup/cygwin/fhandler_proc.cc
@@ -631,7 +631,15 @@ format_proc_cpuinfo (char *destbuf, size_t maxsize)
debug_printf ("processor does not support CPUID instruction");
}
- if (!has_cpuid)
+ if (!wincap.is_winnt ())
+ {
+ bufptr += __small_sprintf (bufptr, "processor : %d\n", cpu_number);
+ read_value ("VendorIdentifier", REG_SZ);
+ bufptr += __small_sprintf (bufptr, "vendor id : %s\n", szBuffer);
+ read_value ("Identifier", REG_SZ);
+ bufptr += __small_sprintf (bufptr, "identifier : %s\n", szBuffer);
+ }
+ else if (!has_cpuid)
{
bufptr += __small_sprintf (bufptr, "processor : %d\n", cpu_number);
read_value ("VendorIdentifier", REG_SZ);