]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: Use correct byte-sized register constraint in __xchg_op()
authorJeremy Fitzhardinge <jeremy@goop.org>
Mon, 2 Apr 2012 23:15:33 +0000 (16:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2012 22:38:59 +0000 (15:38 -0700)
commit36f87c5f10a44a44d1c1d9111c043d965295ab44
treeabac1416a69fdc7f66a12d7becd217bde218ba47
parenta10c8741cf87142f6eb835c0adac649ffa34767e
x86: Use correct byte-sized register constraint in __xchg_op()

commit 2ca052a3710fac208eee690faefdeb8bbd4586a1 upstream.

x86-64 can access the low half of any register, but i386 can only do
it with a subset of registers.  'r' causes compilation failures on i386,
but 'q' expresses the constraint properly.

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Link: http://lkml.kernel.org/r/4F7A3315.501@goop.org
Reported-by: Leigh Scott <leigh123linux@googlemail.com>
Tested-by: Thomas Reitmayr <treitmayr@devbase.at>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/include/asm/cmpxchg.h