]> git.karo-electronics.de Git - linux-beck.git/commit
x86: Fix movq immediate operand constraints in uaccess_64.h
authorUros Bizjak <ubizjak@gmail.com>
Sun, 19 Jul 2009 16:06:35 +0000 (18:06 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 21 Jul 2009 03:46:17 +0000 (20:46 -0700)
commit155b73529583c38f30fd394d692b15a893960782
treebdfb0b7d0d856c66b11ee4883d89a7abdb2b47c4
parent77f32dfdd97857280ae1ebac64382ff082cd7ea0
x86: Fix movq immediate operand constraints in uaccess_64.h

arch/x86/include/asm/uaccess_64.h uses wrong asm operand constraint
("ir") for movq insn. Since movq sign-extends its immediate operand,
"er" constraint should be used instead.

Attached patch changes all uses of __put_user_asm in uaccess_64.h to use
"er" when "q" insn suffix is involved.

Patch was compile tested on x86_64 with defconfig.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: stable@kernel.org
arch/x86/include/asm/uaccess_64.h