[ARM] pxa: don't rely on r2 being preserved over a function call
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 11 Jan 2008 12:23:58 +0000 (12:23 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 20 Jan 2008 10:09:59 +0000 (10:09 +0000)
commit3b1904d00a54d4d839a4c12dbc98a14dc4efdc95
tree02edcde7c2d7ec7c90dbf4a1cbcbff963515ff50
parenta7da60f41551abb3c520b03d42ec05dd7decfc7f
[ARM] pxa: don't rely on r2 being preserved over a function call

r2 is not guaranteed to be preserved over a function call, so relying
on it to store the link register over the call to sleep_phys_sp() is
unreliable.  Store the link register on the stack instead.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/sleep.S