This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

/proc/cpuinfo fix


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 at atomice dot 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

Attachment: cpuinfo.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]