diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-06-13 16:35:52 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 09:13:59 +0200 |
commit | edf10162b2c5ad78ada8e63e960f9d0949c6c219 (patch) | |
tree | c860cce966d760d230fe56de713093b7eec25df4 /include | |
parent | f8dd0d3c62164160c59034a96eb17d69ac8a0328 (diff) | |
download | op-kernel-dev-edf10162b2c5ad78ada8e63e960f9d0949c6c219.zip op-kernel-dev-edf10162b2c5ad78ada8e63e960f9d0949c6c219.tar.gz |
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')
-rw-r--r-- | include/asm-x86/uaccess_64.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/asm-x86/uaccess_64.h b/include/asm-x86/uaccess_64.h index b8a2f43..a2d4907 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 */ |