[MIPS] Improve unwind_stack()
authorFranck Bui-Huu <vagabon.xyz@gmail.com>
Thu, 3 Aug 2006 07:29:21 +0000 (09:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 27 Sep 2006 12:37:29 +0000 (13:37 +0100)
commit4d157d5eac29d7d5559fdcabf20f3961bc5cb3e7
tree82662abbe473e5bd0be973e2a8ceb8b63082da55
parent0cceb4aa9acf6192a5f02134e764b1feeea8b9de
[MIPS] Improve unwind_stack()

This patch allows unwind_stack() to return ra for leaf function.
But it tries to detects cases where get_frame_info() wrongly
consider nested function as a leaf one.

It also pass 'unsinged long *sp' instead of 'unsigned long **sp'
as second parameter. The code looks cleaner.

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/process.c
arch/mips/kernel/traps.c