summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/uaccess_64.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-13 16:35:52 -0300
committerIngo Molnar <mingo@elte.hu>2008-07-09 09:13:59 +0200
commitedf10162b2c5ad78ada8e63e960f9d0949c6c219 (patch)
treec860cce966d760d230fe56de713093b7eec25df4 /include/asm-x86/uaccess_64.h
parentf8dd0d3c62164160c59034a96eb17d69ac8a0328 (diff)
downloadblackbird-op-linux-edf10162b2c5ad78ada8e63e960f9d0949c6c219.tar.gz
blackbird-op-linux-edf10162b2c5ad78ada8e63e960f9d0949c6c219.zip
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/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 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);
#define __get_user_x(size, ret, x, ptr) \
asm volatile("call __get_user_" #size \
: "=a" (ret),"=d" (x) \
- : "c" (ptr) \
- : "r8")
+ : "0" (ptr)) \
/* Careful: we have to cast the result to the type of the pointer
* for sign reasons */
OpenPOWER on IntegriCloud