sh: rework SuperH Mobile sleep code exception handling
commit309214af53f030e0664aea011a9f628c5eb9cc2d
authorMagnus Damm <damm@igel.co.jp>
Mon, 17 Aug 2009 09:27:29 +0000 (17 09:27 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 18 Aug 2009 01:17:29 +0000 (18 10:17 +0900)
tree9a84da7f3d9f017850afbf4b51d4d247edf26534
parentcd7246f0e2747bd2b43d25d0f63f05db182a62c0
sh: rework SuperH Mobile sleep code exception handling

This patch updates the exception handling in the sleep code
for SuperH Mobile. With the patch applied the sleep code
always rewrites the VBR and resumes from the exception vector,
re-initializes hardware and jumps straight to the original
interrupt vector.

Tested on sh7722 and sh7724 with "Sleep Mode", "Sleep Mode + SF"
and "Software Standby Mode + SF" with CONFIG_SUSPEND.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/cpu/shmobile/pm.c
arch/sh/kernel/cpu/shmobile/sleep.S