Re: NexGen detection

Thomas S. Iversen (zensonic@diku.dk)
Fri, 14 Apr 2000 17:02:26 +0200 (METDST)


On Fri, 14 Apr 2000, Alan Cox wrote:

> If you want to write the code then go for it.

I'll give it a try.

> In theory you can check cpuid
> availability by toggling a bit in eflags, we do that already

Well, NexGen is broken by design here :/

> Is there another way to detect nexgen and then try cpuid ?

Not that I know off. I would go for something like

* test for 386
* if caught as 386 goto nexgen_or_386?
* test for 486 as usal

nexgen_or_386
* install Illegal instruction handler
* try cpuid (handler gets us out of the nasty case)
* determine which cpu.
* remove handler

Yours THomas

Thomas S. Iversen
zensonic@diku.dk
Dept. of computer science - copenhagen, denmark.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/