linux/arch/sh
Paul Mundt 485f0720c3 sh: DSP save/restore ordering and a0 sign extension fixups.
As an excellent indicator of how much testing the DSP code gets, a couple
of rather glaring bugs in the DSP save/restore paths were found:

- In the DSP restore case a0 needs to be popped off before a0g,
  or the value of a0g is clobbered by the MSB of a0 in the case
  of sign extension.

- Beyond that, the save and restore orders were out of sync,
  so this fixes that up as well. At the same time, we switch over
  to using movs.l for both the save and restore of the general DSP
  registers as opposed to using sts.l (which was initially put in
  place to work around a bug in ancient binutils versions which
  the kernel no longer supports).

Reported-by: Chee Soon Yip <yip.cheesoon@renesas.com>
Cc: Chu Lih Kwek <kwek.chulih@renesas.com>,
Cc: General Lai <general.lai@renesas.com>,
Cc: Robert Cozens <Robert.Cozens@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2009-08-20 14:02:20 +09:00
..
boards Merge branch 'sh/r8a66597-udc' 2009-08-20 11:54:38 +09:00
boot sh: fix romImage mach dir usage 2009-08-07 03:58:38 +09:00
cchips sh: mach-hp6xx: Fix up the hp6xx build for hd64461 changes. 2009-05-20 11:27:13 +09:00
configs sh: Add EcoVec (SH7724) board support 2009-08-20 10:13:16 +09:00
drivers sh: Add SH7724 support to NR_ONCHIP_DMA_CHANNELS 2009-08-19 19:28:40 +09:00
include sh: DSP save/restore ordering and a0 sign extension fixups. 2009-08-20 14:02:20 +09:00
kernel sh: Fix up the CONFIG_FTRACE_SYSCALLS=n build. 2009-08-20 12:07:46 +09:00
lib sh: Fix up stack overflow check with ftrace disabled. 2009-07-11 21:06:53 +09:00
lib64 sh: Convert sh64 to use the generic checksum code. 2009-06-15 00:00:42 +09:00
math-emu sh: Fix up the math-emu build. 2007-06-11 15:57:42 +09:00
mm sh: Better description of SH-4 PTEA register update. 2009-08-20 13:27:44 +09:00
oprofile sh: oprofile: Kill off dead valid_kernel_stack(). 2009-08-14 04:59:50 +09:00
tools sh: Add mach-types entry for EcoVec board. 2009-08-20 10:14:29 +09:00
Kconfig sh: bzip2/lzma zImage support. 2009-07-11 13:21:19 -04:00
Kconfig.cpu sh: Tidy up SH-4A boot_cpu_data.flags probing. 2009-06-01 19:50:08 +09:00
Kconfig.debug sh: dwarf unwinder support. 2009-08-14 01:58:43 +09:00
Makefile sh: Add EcoVec (SH7724) board support 2009-08-20 10:13:16 +09:00