]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6164/1: Add kto and kfrom to input operands list.
authorKhem Raj <raj.khem@gmail.com>
Fri, 4 Jun 2010 03:05:15 +0000 (04:05 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 8 Jun 2010 18:42:18 +0000 (19:42 +0100)
commit1a8a87ce27b474438db2de43b967317a90acd6f4
tree52a74a0826d771141b78b1a04928e75df5726ebf
parent2ea0205ec589bee5582e94220f9ec898920040d9
ARM: 6164/1: Add kto and kfrom to input operands list.

When functions incoming parameters are not in input operands list gcc
4.5 does not load the parameters into registers before calling this
function but the inline assembly assumes valid addresses inside this
function. This breaks the code because r0 and r1 are invalid when
execution enters v4wb_copy_user_page ()

Also the constant needs to be used as third input operand so account
for that as well.

Tested on qemu arm.

CC: <stable@kernel.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/copypage-feroceon.c
arch/arm/mm/copypage-v4wb.c
arch/arm/mm/copypage-v4wt.c
arch/arm/mm/copypage-xsc3.c