diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 18:48:59 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-29 19:38:03 -0400 |
commit | 675f740e557bc752cdcdb0739d80666b488abb58 (patch) | |
tree | 51bc4681e5e182637f9086e033659ab38a3207de /arch/sparc64/kernel/unaligned.c | |
parent | f57caaefacc2ffa7ace11a325c663e569e2b4164 (diff) |
[SPARC64]: Print symbol name of regs->tpc on kernel unaligned accesses.
This makes things easier to track down, especially in modules.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/unaligned.c')
-rw-r--r-- | arch/sparc64/kernel/unaligned.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/unaligned.c b/arch/sparc64/kernel/unaligned.c index bb2d68577855..a9b765271b85 100644 --- a/arch/sparc64/kernel/unaligned.c +++ b/arch/sparc64/kernel/unaligned.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/smp.h> | 20 | #include <linux/smp.h> |
21 | #include <linux/smp_lock.h> | 21 | #include <linux/smp_lock.h> |
22 | #include <linux/bitops.h> | 22 | #include <linux/bitops.h> |
23 | #include <linux/kallsyms.h> | ||
23 | #include <asm/fpumacro.h> | 24 | #include <asm/fpumacro.h> |
24 | 25 | ||
25 | /* #define DEBUG_MNA */ | 26 | /* #define DEBUG_MNA */ |
@@ -291,7 +292,8 @@ asmlinkage void kernel_unaligned_trap(struct pt_regs *regs, unsigned int insn) | |||
291 | if (count < 5) { | 292 | if (count < 5) { |
292 | last_time = jiffies; | 293 | last_time = jiffies; |
293 | count++; | 294 | count++; |
294 | printk("Kernel unaligned access at TPC[%lx]\n", regs->tpc); | 295 | printk("Kernel unaligned access at TPC[%lx] ", regs->tpc); |
296 | print_symbol("%s\n", regs->tpc); | ||
295 | } | 297 | } |
296 | 298 | ||
297 | if (!ok_for_kernel(insn) || dir == both) { | 299 | if (!ok_for_kernel(insn) || dir == both) { |