提交 bdd3ede0 编写于 作者: R Ralf Baechle 提交者: Ralf Baechle

[MIPS] MT: Use kallsyms in CPU state dump

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 153ef95e
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
*/ */
#include <linux/device.h> #include <linux/device.h>
#include <linux/kallsyms.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/module.h> #include <linux/module.h>
...@@ -84,8 +85,9 @@ void mips_mt_regdump(unsigned long mvpctl) ...@@ -84,8 +85,9 @@ void mips_mt_regdump(unsigned long mvpctl)
read_vpe_c0_vpeconf0()); read_vpe_c0_vpeconf0());
printk(" VPE%d.Status : %08lx\n", printk(" VPE%d.Status : %08lx\n",
i, read_vpe_c0_status()); i, read_vpe_c0_status());
printk(" VPE%d.EPC : %08lx\n", printk(" VPE%d.EPC : %08lx ",
i, read_vpe_c0_epc()); i, read_vpe_c0_epc());
print_symbol("%s\n", read_vpe_c0_epc());
printk(" VPE%d.Cause : %08lx\n", printk(" VPE%d.Cause : %08lx\n",
i, read_vpe_c0_cause()); i, read_vpe_c0_cause());
printk(" VPE%d.Config7 : %08lx\n", printk(" VPE%d.Config7 : %08lx\n",
...@@ -110,7 +112,8 @@ void mips_mt_regdump(unsigned long mvpctl) ...@@ -110,7 +112,8 @@ void mips_mt_regdump(unsigned long mvpctl)
} }
printk(" TCStatus : %08lx\n", tcstatval); printk(" TCStatus : %08lx\n", tcstatval);
printk(" TCBind : %08lx\n", read_tc_c0_tcbind()); printk(" TCBind : %08lx\n", read_tc_c0_tcbind());
printk(" TCRestart : %08lx\n", read_tc_c0_tcrestart()); printk(" TCRestart : %08lx ", read_tc_c0_tcrestart());
print_symbol("%s\n", read_tc_c0_tcrestart());
printk(" TCHalt : %08lx\n", haltval); printk(" TCHalt : %08lx\n", haltval);
printk(" TCContext : %08lx\n", read_tc_c0_tccontext()); printk(" TCContext : %08lx\n", read_tc_c0_tccontext());
if (!haltval) if (!haltval)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册