From: Roman Zippel Date: Fri, 23 Jun 2006 09:04:31 +0000 (-0700) Subject: [PATCH] x86: fix __range_ok constraint X-Git-Tag: v2.6.18-rc1~1081^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=722f4f5b2600b8930b63a096e48b878cd6e0e15a;p=platform%2Fkernel%2Flinux-3.10.git [PATCH] x86: fix __range_ok constraint An immediate operand can't be the destination of the cmpl instruction, so exclude it. Signed-off-by: Roman Zippel Cc: Mattia Dongili Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-i386/uaccess.h b/include/asm-i386/uaccess.h index 82af28a..8462f8e 100644 --- a/include/asm-i386/uaccess.h +++ b/include/asm-i386/uaccess.h @@ -58,7 +58,7 @@ extern struct movsl_mask { __chk_user_ptr(addr); \ asm("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl $0,%0" \ :"=&r" (flag), "=r" (sum) \ - :"1" (addr),"g" ((int)(size)),"g" (current_thread_info()->addr_limit.seg)); \ + :"1" (addr),"g" ((int)(size)),"rm" (current_thread_info()->addr_limit.seg)); \ flag; }) /**