[parisc-linux] [RFT] PA7200 users?

Kyle McMartin kyle at mcmartin.ca
Sat Jul 8 15:31:44 MDT 2006


On Sat, Jul 08, 2006 at 09:13:36PM +0000, Joel Soete wrote:
> which is well what I read about the pa20 insn "ldd" otoh I didn't find the 
> equivalent pa11 insn (at least into pa11_acd.pdf)?

Right. Prefetch for write doesn't exist in PA1.1.

Index: include/asm-parisc/processor.h
===================================================================
RCS file: /var/cvs/linux-2.6/include/asm-parisc/processor.h,v
retrieving revision 1.18
diff -u -d -p -r1.18 processor.h
--- include/asm-parisc/processor.h	7 Jul 2006 04:50:44 -0000	1.18
+++ include/asm-parisc/processor.h	8 Jul 2006 21:31:35 -0000
@@ -17,8 +17,10 @@
 #ifdef CONFIG_PREFETCH
 extern inline void prefetch(const void *addr);
 #define ARCH_HAS_PREFETCH
+#ifdef CONFIG_PA20
 extern inline void prefetchw(const void *addr);
 #define ARCH_HAS_PREFETCHW
+#endif
 #endif /* CONFIG_PREFETCH */
 
 #include <linux/threads.h>
@@ -357,10 +359,12 @@ extern inline void prefetch(const void *
 	__asm__("ldw 0(%0), %%r0" : : "r" (addr));
 }
 
+#ifdef CONFIG_PA20
 extern inline void prefetchw(const void *addr)
 {
 	__asm__("ldd 0(%0), %%r0" : : "r" (addr));
 }
+#endif
 #endif /* CONFIG_PREFETCH */
 
 #define cpu_relax()	barrier()



More information about the parisc-linux mailing list