提交 1dca56f1 编写于 作者: M Matt Fleming 提交者: Paul Mundt

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: NMatt Fleming <matt@console-pimps.org>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 14269828
...@@ -365,6 +365,8 @@ handle_exception: ...@@ -365,6 +365,8 @@ handle_exception:
mov.l @k2, k2 ! read out vector and keep in k2 mov.l @k2, k2 ! read out vector and keep in k2
handle_exception_special: handle_exception_special:
setup_frame_reg
! Setup return address and jump to exception handler ! Setup return address and jump to exception handler
mov.l 7f, r9 ! fetch return address mov.l 7f, r9 ! fetch return address
stc r2_bank, r0 ! k2 (vector) stc r2_bank, r0 ! k2 (vector)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册