patch-2.4.10 linux/arch/i386/lib/usercopy.c
Next file: linux/arch/i386/mm/extable.c
Previous file: linux/arch/i386/lib/Makefile
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Tue Sep 18 14:10:43 2001
- Orig file:
v2.4.9/linux/arch/i386/lib/usercopy.c
- Orig date:
Fri Apr 13 20:26:07 2001
diff -u --recursive --new-file v2.4.9/linux/arch/i386/lib/usercopy.c linux/arch/i386/lib/usercopy.c
@@ -44,6 +44,7 @@
unsigned long
__generic_copy_to_user(void *to, const void *from, unsigned long n)
{
+ prefetch(from);
if (access_ok(VERIFY_WRITE, to, n))
__copy_user(to,from,n);
return n;
@@ -52,6 +53,7 @@
unsigned long
__generic_copy_from_user(void *to, const void *from, unsigned long n)
{
+ prefetchw(to);
if (access_ok(VERIFY_READ, from, n))
__copy_user_zeroing(to,from,n);
else
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)