aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-13 15:35:52 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 03:13:59 -0400
commitedf10162b2c5ad78ada8e63e960f9d0949c6c219 (patch)
treec860cce966d760d230fe56de713093b7eec25df4 /include/asm-x86
parentf8dd0d3c62164160c59034a96eb17d69ac8a0328 (diff)
x86: don't clobber r8 nor use rcx.
There's really no reason to clobber r8 or pass the address in rcx. We can safely use only two registers (which we already have to touch anyway) to do the job. 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')
-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 b8a2f4339903..a2d49078e19c 100644
--- a/include/asm-x86/uaccess_64.h
+++ b/include/asm-x86/uaccess_64.h
@@ -90,8 +90,7 @@ extern int fixup_exception(struct pt_regs *regs);
90#define __get_user_x(size, ret, x, ptr) \ 90#define __get_user_x(size, ret, x, ptr) \
91 asm volatile("call __get_user_" #size \ 91 asm volatile("call __get_user_" #size \
92 : "=a" (ret),"=d" (x) \ 92 : "=a" (ret),"=d" (x) \
93 : "c" (ptr) \ 93 : "0" (ptr)) \
94 : "r8")
95 94
96/* Careful: we have to cast the result to the type of the pointer 95/* Careful: we have to cast the result to the type of the pointer
97 * for sign reasons */ 96 * for sign reasons */