/proc/cpuinfo fix
Chris January
chris@atomice.net
Tue Mar 18 01:45:00 GMT 2003
This patch changes Corinna's fix for the IsProcessorFeaturePresent missing
export so that the cpuid instruction is called (if available) even on non-NT
systems, giving more detailed information. This patch does not allow for the
bug in IsProcessorFeaturePresent on Windows NT 4 (i.e. on 486DX processors
it will incorrectly report that an FPU is not present).
This patch is UNTESTED on Windows 95/98/Me since I can't do that until
tomorrow.
2003-03-18 Christopher January <chris@atomice.net>
* fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
only on Windows NT. Read CPU Mhz value only on NT. Revert previous change
so cpuid instruction is called even on non-NT systems.
---
Christopher January www.atomice.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpuinfo.patch
Type: application/octet-stream
Size: 6821 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20030318/215ff6dd/attachment.obj>
More information about the Cygwin-patches
mailing list