projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4e54de
)
[SPARC64]: Explicitly print return PC when the kernel fault PC is bogus.
author
David S. Miller
<davem@sunset.davemloft.net>
Sat, 22 Jul 2006 08:12:09 +0000
(
01:12
-0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Tue, 25 Jul 2006 05:33:58 +0000
(22:33 -0700)
That way we'll have at least some debugging info even if
the stack dump explodes.
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/fault.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/mm/fault.c
b/arch/sparc64/mm/fault.c
index
1605967
..
55ae802
100644
(file)
--- a/
arch/sparc64/mm/fault.c
+++ b/
arch/sparc64/mm/fault.c
@@
-19,6
+19,7
@@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/kprobes.h>
+#include <linux/kallsyms.h>
#include <asm/page.h>
#include <asm/pgtable.h>
@@
-132,6
+133,8
@@
static void bad_kernel_pc(struct pt_regs *regs, unsigned long vaddr)
printk(KERN_CRIT "OOPS: Bogus kernel PC [%016lx] in fault handler\n",
regs->tpc);
+ printk(KERN_CRIT "OOPS: RPC [%016lx]\n", regs->u_regs[15]);
+ print_symbol("RPC: <%s>\n", regs->u_regs[15]);
printk(KERN_CRIT "OOPS: Fault was to vaddr[%lx]\n", vaddr);
__asm__("mov %%sp, %0" : "=r" (ksp));
show_stack(current, ksp);