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

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

diff -urN linux-2.4.22/arch/x86_64/lib/copy_user.S linux-2.4.23/arch/x86_64/lib/copy_user.S
@@ -4,7 +4,7 @@
  * Functions to copy from and to user space.		
  */		 
 
-#define FIX_ALIGNMENT 1
+/* #define FIX_ALIGNMENT 1 */
 
 	#include <asm/current.h>
 	#include <asm/offset.h>
@@ -59,9 +59,8 @@
 	.globl copy_user_generic	
 	.p2align 4
 copy_user_generic:	
-	/* Put the first cacheline into cache. This should handle
-	   the small movements in ioctls etc., but not penalize the bigger
-	   filesystem data copies too much. */
+	prefetch (%rsi)
+	prefetchw (%rdi)
 	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)