sh: Fix up DSP context save/restore.
authorMichael Trimarchi <trimarchi@gandalf.sssup.it>
Fri, 3 Apr 2009 17:32:33 +0000 (17:32 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Sat, 4 Apr 2009 15:48:11 +0000 (11:48 -0400)
commit01ab10393c510342ec4ce85df11ccfa3df06bbb2
treeebf0493fa7b53941f830f8b300037f834eb85e59
parenta27873cd234b4248dda342721d6262943e5fa235
sh: Fix up DSP context save/restore.

There were a number of issues with the DSP context save/restore code,
mostly left-over relics from when it was introduced on SH3-DSP with
little follow-up testing, resulting in things like task_pt_dspregs()
referencing incorrect state on the stack.

This follows the MIPS convention of tracking the DSP state in the
thread_struct and handling the state save/restore in switch_to() and
finish_arch_switch() respectively. The regset interface is also updated,
which allows us to finally be rid of task_pt_dspregs() and the special
cased task_pt_regs().

Signed-off-by: Michael Trimarchi <michael@evidence.eu.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/processor_32.h
arch/sh/include/asm/ptrace.h
arch/sh/include/asm/system_32.h
arch/sh/kernel/cpu/sh3/entry.S
arch/sh/kernel/process_32.c
arch/sh/kernel/ptrace_32.c
arch/sh/kernel/traps_32.c