Re: [PATCH] mtrr.c for linux-2.4.0-test9-pre7

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Wed Sep 27 2000 - 16:04:56 EST


> On mtrr.c, it assume that CPU is CyrixIII when cpuid is 0x06XX, and
> try to use intel compatible MTRR, so Cyrix MII with MTRR can't work.

Oops it shouldnt fall through any more. My fault

> Here is the ad hoc patch.

And here is a non AdHoc one (the Cyrix III reports itself as CENTAUR which
makes sense since they built it and are now like Cyrix part of VIA)

Fixed in my 2.2 tree as well

--- arch/i386/kernel/mtrr.c~ Fri Sep 15 12:42:22 2000
+++ arch/i386/kernel/mtrr.c Wed Sep 27 21:05:41 2000
@@ -440,6 +440,7 @@
         /*break;*/
       case X86_VENDOR_CYRIX:
         /* Cyrix have 8 ARRs */
+ return 8;
       case X86_VENDOR_CENTAUR:
         /* and Centaur has 8 MCR's */
         if(boot_cpu_data.x86==5)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:20 EST