]> git.karo-electronics.de Git - karo-tx-linux.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:10:52 +0000 (11:10 -0700)
commit1db9679a1567e1f0dc5d9103911f5cfd7eb493a9
tree3d9e89c37191af281078bdce90d826fa225de9af
parent39be45ee5ca20b54cdcf74c77933acc3f560ed7c
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