diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2006-09-28 10:15:33 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-10-01 22:16:58 (GMT) |
commit | 23126692e30ec22760e0ef932c3c2fff00d440bb (patch) | |
tree | 1bdfdbe895090d6c73a2c6ea0aaf6b6fa9c2ebce /arch/mips/kernel/genex.S | |
parent | c8cc9618c55a341dda39357cce5ff39f7ad17132 (diff) | |
download | linux-23126692e30ec22760e0ef932c3c2fff00d440bb.tar.xz |
[MIPS] Stacktrace build-fix and improvement
Fix build error due to stacktrace API change. Now save_stack_trace()
tries to save all kernel context, including interrupts and exception.
Also some asm code are changed a bit so that we can detect the end of
current context easily.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/genex.S')
-rw-r--r-- | arch/mips/kernel/genex.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/kernel/genex.S b/arch/mips/kernel/genex.S index 37fda3d..af6ef2f 100644 --- a/arch/mips/kernel/genex.S +++ b/arch/mips/kernel/genex.S @@ -220,8 +220,8 @@ NESTED(except_vec_vi_handler, 0, sp) CLI TRACE_IRQS_OFF move a0, sp - jalr v0 - j ret_from_irq + PTR_LA ra, ret_from_irq + jr v0 END(except_vec_vi_handler) /* @@ -349,8 +349,8 @@ NESTED(nmi_handler, PT_SIZE, sp) .set at __BUILD_\verbose \exception move a0, sp - jal do_\handler - j ret_from_exception + PTR_LA ra, ret_from_exception + j do_\handler END(handle_\exception) .endm |