RE: NexGen detection

Maciej W. Rozycki (macro@ds2.pg.gda.pl)
Fri, 14 Apr 2000 18:37:38 +0200 (MET DST)


On Fri, 14 Apr 2000, Thomas S. Iversen wrote:

> > This is cheating -- a 5th family processor ought to support wp. Some
>
> It's cheating in one sense not in others. The information you see is what
> calling CPUID is yielding. I *know* that the processor has a broken WP,
> but it also clearly says so :)

If you compile for an 486 or better the kernel assumes WP works right --
no check is performed other than the following one (this is taken from
include/asm-i386/bugs.h):

if (boot_cpu_data.x86 == 3)
panic("Kernel requires i486+ for 'invlpg' and other features");

You may actually check for "boot_cpu_data.x86_vendor == X86_VENDOR_NEXGEN"
here; hopefully the remaining code does not depend on the family directly.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

- 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/