From 2e72819f1af8d0493f6f04bbcf684c4bc1115964 Mon Sep 17 00:00:00 2001 From: corinna Date: Thu, 13 Mar 2003 22:53:15 +0000 Subject: [PATCH] * autoload.cc (IsProcessorFeaturePresent): Add. * fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/autoload.cc | 1 + winsup/cygwin/fhandler_proc.cc | 10 +++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index b66fa14230..b1cf3b0814 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2003-03-13 Corinna Vinschen + * autoload.cc (IsProcessorFeaturePresent): Add. + * fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems. + +2003-03-13 Corinna Vinschen + * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case. 2003-03-13 Corinna Vinschen diff --git a/winsup/cygwin/autoload.cc b/winsup/cygwin/autoload.cc index 659ca2be21..16491e0fe3 100644 --- a/winsup/cygwin/autoload.cc +++ b/winsup/cygwin/autoload.cc @@ -503,6 +503,7 @@ LoadDLLfuncEx2 (GetCompressedFileSizeA, 8, kernel32, 1, 0xffffffff) LoadDLLfuncEx (GetConsoleWindow, 0, kernel32, 1) LoadDLLfuncEx (GetSystemTimes, 12, kernel32, 1) LoadDLLfuncEx2 (IsDebuggerPresent, 0, kernel32, 1, 1) +LoadDLLfunc (IsProcessorFeaturePresent, 4, kernel32); LoadDLLfuncEx (Process32First, 8, kernel32, 1) LoadDLLfuncEx (Process32Next, 8, kernel32, 1) LoadDLLfuncEx (SignalObjectAndWait, 16, kernel32, 1) diff --git a/winsup/cygwin/fhandler_proc.cc b/winsup/cygwin/fhandler_proc.cc index c5a5f803c8..9f7b1a8d71 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); -- 2.11.0