diff options
author | Matt Fleming <matt@console-pimps.org> | 2010-01-27 15:44:59 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-02-07 20:46:53 -0500 |
commit | 1dca56f13899b9e256f56198026019835aaf9a3a (patch) | |
tree | 21a51f6248bbabfa0abe6a5918d674478af38f6f /arch/sh/kernel/cpu/sh3 | |
parent | 142698282ceb6811ad3482c218b7292037cb67ff (diff) |
sh: Setup frame pointer in handle_exception path
In order to allow the DWARF unwinder to unwind through exceptions we
need to setup the frame pointer register (r14).
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh3')
-rw-r--r-- | arch/sh/kernel/cpu/sh3/entry.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S index 3f7e2a22c7c2..29021bc67493 100644 --- a/arch/sh/kernel/cpu/sh3/entry.S +++ b/arch/sh/kernel/cpu/sh3/entry.S | |||
@@ -365,6 +365,8 @@ handle_exception: | |||
365 | mov.l @k2, k2 ! read out vector and keep in k2 | 365 | mov.l @k2, k2 ! read out vector and keep in k2 |
366 | 366 | ||
367 | handle_exception_special: | 367 | handle_exception_special: |
368 | setup_frame_reg | ||
369 | |||
368 | ! Setup return address and jump to exception handler | 370 | ! Setup return address and jump to exception handler |
369 | mov.l 7f, r9 ! fetch return address | 371 | mov.l 7f, r9 ! fetch return address |
370 | stc r2_bank, r0 ! k2 (vector) | 372 | stc r2_bank, r0 ! k2 (vector) |