patch-2.4.26 linux-2.4.26/arch/x86_64/lib/copy_user.S

Next file: linux-2.4.26/arch/x86_64/lib/csum-copy.S
Previous file: linux-2.4.26/arch/x86_64/lib/copy_page.S
Back to the patch index
Back to the overall index

diff -urN linux-2.4.25/arch/x86_64/lib/copy_user.S linux-2.4.26/arch/x86_64/lib/copy_user.S
@@ -4,6 +4,8 @@
  * Functions to copy from and to user space.		
  */		 
 
+	#include <linux/config.h>
+	
 /* #define FIX_ALIGNMENT 1 */
 
 	#include <asm/current.h>
@@ -59,8 +61,10 @@
 	.globl copy_user_generic	
 	.p2align 4
 copy_user_generic:	
-	prefetch (%rsi)
+	prefetcht0 (%rsi)
+#ifdef CONFIG_MK8
 	prefetchw (%rdi)
+#endif
 	pushq %rbx
 	xorl %eax,%eax		/*zero for the exception handler */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)