patch-1.3.91 linux/arch/alpha/kernel/apecs.c

Next file: linux/arch/alpha/kernel/bios32.c
Previous file: linux/arch/alpha/kernel/alcor.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.90/linux/arch/alpha/kernel/apecs.c linux/arch/alpha/kernel/apecs.c
@@ -453,6 +453,22 @@
 	    hwrpb->chksum = sum;
 	}
 #endif /* CONFIG_ALPHA_CABRIOLET */
+
+       /*
+        * Finally, clear the HAXR2 register, which gets used
+        *  for PCI Config Space accesses. That is the way
+        *  we want to use it, and we do not want to depend on
+        *  what ARC or SRM might have left behind...
+        */
+       {
+#if 0
+         unsigned int haxr2 = *((unsigned int *)APECS_IOC_HAXR2); mb();
+         if (haxr2) printk("apecs_init: HAXR2 was 0x%x\n", haxr2);
+#endif
+         *((unsigned int *)APECS_IOC_HAXR2) = 0; mb();
+       }
+
+
 	return mem_start;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this