]> git.karo-electronics.de Git - linux-beck.git/blobdiff - include/asm-x86/uaccess_64.h
x86: pass argument to putuser_64 functions in ax register.
[linux-beck.git] / include / asm-x86 / uaccess_64.h
index a2d49078e19cad6a5d0a1997583351833b9947ec..f822a36cc1c036f8e20213364c696ec5a647c412 100644 (file)
@@ -130,8 +130,8 @@ extern void __put_user_bad(void);
 #define __put_user_x(size, ret, x, ptr)                                        \
        asm volatile("call __put_user_" #size                           \
                     :"=a" (ret)                                        \
-                    :"c" (ptr),"d" (x)                                 \
-                    :"r8")
+                    :"c" (ptr),"a" (x)                                 \
+                    :"ebx")
 
 #define put_user(x, ptr)                                               \
        __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))