]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:33 +0000 (11:22 -0700)
commit2334682accfd74ed34841ecafcd9c39051293904
tree7349045a8aca82e2c55642f644478ee9389eb5c0
parent377b26e45229ed74ecad3ff9a8677bf420d50328
ARM: 6164/1: Add kto and kfrom to input operands list.

commit 9a40ac86152c9cffd3dca482a15ddf9a8c5716b3 upstream.

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.

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