Commit fe98dd31 authored by Matt Fleming's avatar Matt Fleming

sh: Setup the frame pointer in handle_interrupt

When CONFIG_DWARF_UNWINDER is enabled setup r14 in handle_interrupt, so
that we can figure out what function was running when we were
interrupted.
Signed-off-by: default avatarMatt Fleming <matt@console-pimps.org>
parent b344e24a
...@@ -508,6 +508,8 @@ ENTRY(handle_interrupt) ...@@ -508,6 +508,8 @@ ENTRY(handle_interrupt)
bsr save_regs ! needs original pr value in k3 bsr save_regs ! needs original pr value in k3
mov #-1, k2 ! default vector kept in k2 mov #-1, k2 ! default vector kept in k2
setup_frame_reg
! Setup return address and jump to do_IRQ ! Setup return address and jump to do_IRQ
mov.l 4f, r9 ! fetch return address mov.l 4f, r9 ! fetch return address
lds r9, pr ! put return address in pr lds r9, pr ! put return address in pr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment