WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Force efficient implementation of __put_user().
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Fri, 22 Apr 2005 16:34:08 +0000
Delivery-date: Fri, 22 Apr 2005 17:03:37 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Force efficient implementation of __put_user()., BitKeeper Bot <=