Skip to content

Commit

Permalink
sh: Setup frame pointer in handle_exception path
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
mfleming authored and pmundt committed Feb 8, 2010
1 parent 1426982 commit 1dca56f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/kernel/cpu/sh3/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ handle_exception:
mov.l @k2, k2 ! read out vector and keep in k2

handle_exception_special:
setup_frame_reg

! Setup return address and jump to exception handler
mov.l 7f, r9 ! fetch return address
stc r2_bank, r0 ! k2 (vector)
Expand Down

0 comments on commit 1dca56f

Please sign in to comment.