Commit 675f740e authored by David S. Miller's avatar David S. Miller

[SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses.

This makes things easier to track down, especially in modules.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f57caaef
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/smp.h> #include <linux/smp.h>
#include <linux/smp_lock.h> #include <linux/smp_lock.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/kallsyms.h>
#include <asm/fpumacro.h> #include <asm/fpumacro.h>
/* #define DEBUG_MNA */ /* #define DEBUG_MNA */
...@@ -291,7 +292,8 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) ...@@ -291,7 +292,8 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn)
if (count < 5) { if (count < 5) {
last_time = jiffies; last_time = jiffies;
count++; count++;
printk("Kernel unaligned access at TPC[%lx]\n", regs->tpc); printk("Kernel unaligned access at TPC[%lx] ", regs->tpc);
print_symbol("%s\n", regs->tpc);
} }
if (!ok_for_kernel(insn) || dir == both) { if (!ok_for_kernel(insn) || dir == both) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment