diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-03-13 22:53:16 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-03-13 22:53:16 +0000 |
commit | 5b186cd99961b2f60701dee128c9a58fcbd6d8e6 (patch) | |
tree | 0f7d7330b0f922f05e3ec4373fdd5fce57449cbc /winsup/cygwin/fhandler_proc.cc | |
parent | c58555c70f5e5294f7b7841576163053979d1211 (diff) | |
download | cygnal-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.tar.gz cygnal-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.tar.bz2 cygnal-5b186cd99961b2f60701dee128c9a58fcbd6d8e6.zip |
* 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.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index c5a5f803c..9f7b1a8d7 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); |