]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sh: Setup frame pointer in handle_exception path
authorMatt Fleming <matt@console-pimps.org>
Wed, 27 Jan 2010 20:44:59 +0000 (20:44 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 8 Feb 2010 01:46:53 +0000 (10:46 +0900)
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>
arch/sh/kernel/cpu/sh3/entry.S

index 3f7e2a22c7c2a6bd1d4303ac5427b5461ff43d6c..29021bc67493aac9999891660cb3cb5e5890d04a 100644 (file)
@@ -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)