Cyrix ARR problem in split MTRR code

Boszormenyi Zoltan (zboszor@externet.hu)
Wed, 11 Jun 2003 12:11:17 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-30178-1055326328-0001-2
Content-Type: text/plain; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

I noticed a problem in the split MTRR code that is special casing
ARR #3 on Cyrix 6x86(MX) / MII CPUs. I wrote the code for the
original (monolithic) mtrr.c, but I don't have my old Cyrix 6x86MX
mainboard anymore. The problem is obvious though, one liner fix is
attached. Patrick Mochel should have been more careful. :-)

Best regards,
Zoltan Bvszvrminyi

--=_courier-30178-1055326328-0001-2
Content-Type: text/plain; name="mtrr.diff"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="mtrr.diff"

--- arch/i386/kernel/cpu/mtrr/main.c.old 2003-06-11 11:09:43.000000000 +0200
+++ arch/i386/kernel/cpu/mtrr/main.c 2003-06-11 12:03:48.000000000 +0200
@@ -64,7 +64,7 @@
static void set_mtrr(unsigned int reg, unsigned long base,
unsigned long size, mtrr_type type);

-static unsigned int arr3_protected;
+extern int arr3_protected;

void set_mtrr_ops(struct mtrr_ops * ops)
{

--=_courier-30178-1055326328-0001-2--