[MIPS] Rewrite get_wchan and its helper functions using kallsyms_lookup.
commite1d6b31f8f5e87393a1a1df5b11fd645ca346918
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 7 Feb 2006 16:48:03 +0000 (8 01:48 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 9 Feb 2006 21:52:38 +0000 (9 21:52 +0000)
tree83d95c93d5b12f4635ac1e37ef56a044cb4c5ab2
parent21913322623dd54d52aa8be632bac507d061c82f
[MIPS] Rewrite get_wchan and its helper functions using kallsyms_lookup.

Implement get_wchan() and frame_info_init() using kallsyms_lookup().
This fixes problem with static sched/lock functions and mfinfo[]
maintenance issue.  If CONFIG_KALLSYMS was disabled, get_wchan() just
returns thread_saved_pc() value.

Also unwind stackframe based on "addiu sp,-imm" analysis instead of
frame pointer.  This fixes problem with functions compiled without
-fomit-frame-pointer.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/process.c