[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Force efficient implementation of __put_user().



ChangeSet 1.1368, 2005/04/22 17:34:08+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Force efficient implementation of __put_user().
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 uaccess.h |   14 --------------
 1 files changed, 14 deletions(-)


diff -Nru a/xen/include/asm-x86/x86_32/uaccess.h 
b/xen/include/asm-x86/x86_32/uaccess.h
--- a/xen/include/asm-x86/x86_32/uaccess.h      2005-04-22 13:03:56 -04:00
+++ b/xen/include/asm-x86/x86_32/uaccess.h      2005-04-22 13:03:56 -04:00
@@ -163,8 +163,6 @@
                : "=r"(err)                                     \
                : "A" (x), "r" (addr), "i"(-EFAULT), "0"(err))
 
-#ifdef CONFIG_X86_WP_WORKS_OK
-
 #define __put_user_size(x,ptr,size,retval,errret)                      \
 do {                                                                   \
        retval = 0;                                                     \
@@ -177,18 +175,6 @@
        }                                                               \
 } while (0)
 
-#else
-
-#define __put_user_size(x,ptr,size,retval,errret)                      \
-do {                                                                   \
-       __typeof__(*(ptr)) __pus_tmp = x;                               \
-       retval = 0;                                                     \
-                                                                       \
-       if(unlikely(__copy_to_user_ll(ptr, &__pus_tmp, size) != 0))     \
-               retval = errret;                                        \
-} while (0)
-
-#endif
 struct __large_struct { unsigned long buf[100]; };
 #define __m(x) (*(struct __large_struct *)(x))
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.