aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/uaccess_64.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-25 09:14:13 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 03:14:13 -0400
commit53938a68a2f971058bc53aaa8c70f9f24f684cdc (patch)
tree773fad2d90dabfda1572d4990c041e6331d93722 /include/asm-x86/uaccess_64.h
parent5cbbc3b1eb37bdc72eefd2de03b39f5e784400c2 (diff)
x86: commonize __range_not_ok.
For i386, __range_not_ok is a better name than __range_ok, since it returns 0 when it is in fact okay. Other than that, both versions does not need the word size specifiers, and we remove them. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/uaccess_64.h')
-rw-r--r--include/asm-x86/uaccess_64.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-x86/uaccess_64.h b/include/asm-x86/uaccess_64.h
index f822a36cc1c0..012cba3972d7 100644
--- a/include/asm-x86/uaccess_64.h
+++ b/include/asm-x86/uaccess_64.h
@@ -41,8 +41,7 @@
41({ \ 41({ \
42 unsigned long flag, roksum; \ 42 unsigned long flag, roksum; \
43 __chk_user_ptr(addr); \ 43 __chk_user_ptr(addr); \
44 asm("# range_ok\n\r" \ 44 asm("add %3,%1 ; sbb %0,%0 ; cmp %1,%4 ; sbb $0,%0" \
45 "addq %3,%1 ; sbbq %0,%0 ; cmpq %1,%4 ; sbbq $0,%0" \
46 : "=&r" (flag), "=r" (roksum) \ 45 : "=&r" (flag), "=r" (roksum) \
47 : "1" (addr), "g" ((long)(size)), \ 46 : "1" (addr), "g" ((long)(size)), \
48 "g" (current_thread_info()->addr_limit.seg)); \ 47 "g" (current_thread_info()->addr_limit.seg)); \