Mail Archives: djgpp-workers/1999/08/03/16:55:40
Laurynas Biveinis wrote:
> Eli Zaretskii wrote:
> > Because there's no easy way to identify the exact CPU type. If you
> > know about a safe way to do that without crashing on all supported
> > platforms, including NT and DOSEmu, please submit a change for the
> > `uname' library function.
>
> I wrote program for this. It uses ways to detect CPU type
> strictly according to Pentium II documentation. It doesn't
> use any privileged instructions, so it should (?) work on
> NT
NT defines an environment variable with the CPU ID, so I think the program
should first try with it if NT is detected.
> and DOSEMU. However:
> - It detects any better than 486 clone as "i586"
> - it won't detect any 386/486 clone which differently
> uses undefined EFLAGS bits
> - it has been tested only on one system and correctly
> reported that original Intel Pentium II 333MHz is a "i686"
Why don't use the routines found in Allegro? they are very well tested.
SET
--
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Visit my home page: http://welcome.to/SetSoft or
http://www.geocities.com/SiliconValley/Vista/6552/
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
set AT ieee DOT org set-soft AT bigfoot DOT com
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013
- Raw text -