[parisc-linux] [RFT] PA7200 users?

Kyle McMartin kyle at mcmartin.ca
Fri Jul 7 16:11:58 MDT 2006


On Fri, Jul 07, 2006 at 10:00:19PM +0000, Joel Soete wrote:
> Just past midnight of miniutes and the system is working
> 

If it's working, it is likely that's ok. The problem was mainly that
prefetch(0) wouldn't suppress the trap and crash.

Try this just to make sure it is working, maybe someone optimized out
prefetches which were often not pulling in valid data...

Not compile tested, but you get the idea.

Index: arch/parisc/kernel/setup.c
===================================================================
RCS file: /var/cvs/linux-2.6/arch/parisc/kernel/setup.c,v
retrieving revision 1.18
diff -u -d -p -r1.18 setup.c
--- arch/parisc/kernel/setup.c	6 Jul 2006 12:21:25 -0000	1.18
+++ arch/parisc/kernel/setup.c	7 Jul 2006 22:10:04 -0000
@@ -36,6 +36,7 @@
 #include <linux/pci.h>
 #undef PCI_DEBUG
 #include <linux/proc_fs.h>
+#include <linux/prefetch.h>
 
 #include <asm/processor.h>
 #include <asm/pdc.h>
@@ -363,6 +364,10 @@ static int __init parisc_init(void)
 
 #ifdef CONFIG_CHASSIS_LCD_LED
 	register_led_regions();	/* register LED port info in procfs */
+#endif
+
+#ifdef CONFIG_PREFETCH
+	prefetch(NULL);
 #endif
 
 	return 0;





More information about the parisc-linux mailing list