sh: rework register restore code for sh3/sh4/sh4a
authorMagnus Damm <damm@igel.co.jp>
Mon, 23 Feb 2009 07:15:07 +0000 (07:15 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 27 Feb 2009 07:26:14 +0000 (16:26 +0900)
commit1dd22722f6bf9be9821657a2d59fae4d4365fb32
tree807cf326ee1b1786d65d37190b5733ba741cb54d
parent1d015cf02a1fd46385c03cf3ce8958dbea705dd3
sh: rework register restore code for sh3/sh4/sh4a

This patch reworks the sh3/sh4/sh4a register restore code in
the following ways:
 - break out restore_regs() from restore_all()
 - the register saving order is unchanged
 - use restore_regs() in sh_bios_handler and restore_all
 - document the function

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