]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Correct the offset of the return address in ret_from_exception
authorMatt Fleming <matt@console-pimps.org>
Wed, 27 Jan 2010 20:05:20 +0000 (20:05 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Feb 2010 01:46:46 +0000 (10:46 +0900)
commit4d328a932a7782df4cd4e593dcdbeaa1397df6a3
tree2f08f7effe732a8485e1588b8b252e99c29cfee3
parent5e207a21e6e05a12d1ee5d7e438a0300f80aa2cb
sh: Correct the offset of the return address in ret_from_exception

The address that ret_from_exception and ret_from_irq will return to is
found in the stack slot for SPC, not PR. This error was causing the
DWARF unwinder to pick up the wrong return address on the stack and then
unwind using the unwind tables for the wrong function.

While I'm here I might as well add CFI annotations for the other
registers since they could be useful when unwinding.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/entry-common.S