From: Matt Fleming Date: Wed, 27 Jan 2010 20:44:59 +0000 (+0000) Subject: sh: Setup frame pointer in handle_exception path X-Git-Tag: upstream/snapshot3+hdmi~15697^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dca56f13899b9e256f56198026019835aaf9a3a;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/cpu/sh3/entry.S b/arch/sh/kernel/cpu/sh3/entry.S index 3f7e2a2..29021bc6 100644 --- a/arch/sh/kernel/cpu/sh3/entry.S +++ b/arch/sh/kernel/cpu/sh3/entry.S @@ -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)