Skip to contentSkip to conversation

Cyrix ARR problem in split MTRR code

PATCH Boszormenyi Zoltan 1 participant 1 message Jun 11, 2003

lore
Share & tools
lore
#0 lore raw

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,
Zoltán Böszörményi

i386/kernel/cpu/mtrr/main.c renamed from i386/kernel/cpu/mtrr/main.c.old +1 -1
@@ -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)
 {