ARM: OMAP4: sleep: Save the complete used register stack frame
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 9 Aug 2012 07:05:48 +0000 (12:35 +0530)
committerKevin Hilman <khilman@ti.com>
Thu, 9 Aug 2012 15:06:27 +0000 (08:06 -0700)
commit5b6e3eb576e8ad03264d46982afed77bdc6323a3
treeaceb44fea5908c91b45a926fa13bcb639d21d2c4
parente0e29fd74c3c8bd2ef83bbaa73d528d58a944610
ARM: OMAP4: sleep: Save the complete used register stack frame

OMAP4 sleep entry code even though itself don't use many CPU registers
makes call to the v7_flush_dcache_all() which uses them. Since
v7_flush_dcache_all() doesn't make use of stack, the caller must take
care of the stack frame. Otherwise it will lead to corrupted stack frame.

Fix it by saving used registers.

Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/sleep44xx.S