[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>
This commit is contained in:
Atsushi Nemoto
2006-09-28 19:15:33 +09:00
committed by Ralf Baechle
parent c8cc9618c5
commit 23126692e3
3 changed files with 29 additions and 35 deletions

View File

@ -19,8 +19,8 @@
move a0, sp
REG_S a2, PT_BVADDR(sp)
li a1, \write
jal do_page_fault
j ret_from_exception
PTR_LA ra, ret_from_exception
j do_page_fault
END(tlb_do_page_fault_\write)
.endm