Patchwork [1/2] sparc64: Show stack backtrace from show_regs() just like other platforms.

login
register
mail settings
Submitter David Miller
Date April 21, 2010, 10:23 a.m.
Message ID <20100421.032352.82045316.davem@davemloft.net>
Download mbox | patch
Permalink /patch/50650/
State Accepted
Delegated to: David Miller
Headers show

Comments

David Miller - April 21, 2010, 10:23 a.m.
Signed-off-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc/kernel/process_64.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
index a5cf386..dbe81a3 100644
--- a/arch/sparc/kernel/process_64.c
+++ b/arch/sparc/kernel/process_64.c
@@ -202,6 +202,7 @@  void show_regs(struct pt_regs *regs)
 	       regs->u_regs[15]);
 	printk("RPC: <%pS>\n", (void *) regs->u_regs[15]);
 	show_regwindow(regs);
+	show_stack(current, (unsigned long *) regs->u_regs[UREG_FP]);
 }
 
 struct global_reg_snapshot global_reg_snapshot[NR_CPUS];