direct-io.hg

changeset 4638:7c4ca91ec3ce

bitkeeper revision 1.1368 (42692780QS8e5vEYZOY8vFfJQySx9Q)

Force efficient implementation of __put_user().
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Apr 22 16:34:08 2005 +0000 (2005-04-22)
parents 10b57175d4e2
children 31a334290f9c
files xen/include/asm-x86/x86_32/uaccess.h
line diff
     1.1 --- a/xen/include/asm-x86/x86_32/uaccess.h	Fri Apr 22 16:10:53 2005 +0000
     1.2 +++ b/xen/include/asm-x86/x86_32/uaccess.h	Fri Apr 22 16:34:08 2005 +0000
     1.3 @@ -163,8 +163,6 @@ extern void __put_user_bad(void);
     1.4  		: "=r"(err)					\
     1.5  		: "A" (x), "r" (addr), "i"(-EFAULT), "0"(err))
     1.6  
     1.7 -#ifdef CONFIG_X86_WP_WORKS_OK
     1.8 -
     1.9  #define __put_user_size(x,ptr,size,retval,errret)			\
    1.10  do {									\
    1.11  	retval = 0;							\
    1.12 @@ -177,18 +175,6 @@ do {									\
    1.13  	}								\
    1.14  } while (0)
    1.15  
    1.16 -#else
    1.17 -
    1.18 -#define __put_user_size(x,ptr,size,retval,errret)			\
    1.19 -do {									\
    1.20 -	__typeof__(*(ptr)) __pus_tmp = x;				\
    1.21 -	retval = 0;							\
    1.22 -									\
    1.23 -	if(unlikely(__copy_to_user_ll(ptr, &__pus_tmp, size) != 0))	\
    1.24 -		retval = errret;					\
    1.25 -} while (0)
    1.26 -
    1.27 -#endif
    1.28  struct __large_struct { unsigned long buf[100]; };
    1.29  #define __m(x) (*(struct __large_struct *)(x))
    1.30