summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_proc.cc
diff options
context:
space:
mode:
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 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);