diff options
author | Matt Fleming <matt@console-pimps.org> | 2009-08-02 17:33:26 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-13 12:59:55 -0400 |
commit | 0b930489b8606224b829c8a6037eac24249a97ec (patch) | |
tree | 058920e2d468999df15f83824753da8a2406a2dd /arch/sh/kernel/entry-common.S | |
parent | bd353861c735b2265c9d8b2559960c693e7c68ab (diff) |
sh: Setup the frame register in asm code
In order to use DWARF unwinder info the frame register has to contain a
valid value. Whilst GCC takes care of this for C code, we have to do it
ourselves for assembly.
Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/entry-common.S')
-rw-r--r-- | arch/sh/kernel/entry-common.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/kernel/entry-common.S b/arch/sh/kernel/entry-common.S index fc26ccd82789..b3b215fb21f7 100644 --- a/arch/sh/kernel/entry-common.S +++ b/arch/sh/kernel/entry-common.S | |||
@@ -285,6 +285,7 @@ ret_from_fork: | |||
285 | * system calls and debug traps through their respective jump tables. | 285 | * system calls and debug traps through their respective jump tables. |
286 | */ | 286 | */ |
287 | ENTRY(system_call) | 287 | ENTRY(system_call) |
288 | setup_frame_reg | ||
288 | #if !defined(CONFIG_CPU_SH2) | 289 | #if !defined(CONFIG_CPU_SH2) |
289 | mov.l 1f, r9 | 290 | mov.l 1f, r9 |
290 | mov.l @r9, r8 ! Read from TRA (Trap Address) Register | 291 | mov.l @r9, r8 ! Read from TRA (Trap Address) Register |