lkml.org 
[lkml]   [2010]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] microblaze: Begin stack dump with caller of dump_stack()
Date
Adjust the pointer used as the start of a stack dump so that the dump
begins with the caller of dump_stack(). This makes the dump easier to
interpret.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
---
diff -uprN a/arch/microblaze/kernel/traps.c b/arch/microblaze/kernel/traps.c
--- a/arch/microblaze/kernel/traps.c 2010-02-24 14:12:01.000000000 -0600
+++ b/arch/microblaze/kernel/traps.c 2010-02-24 14:56:21.000000000 -0600
@@ -73,8 +73,10 @@ void show_stack(struct task_struct *task
if (task)
sp = (unsigned long *) ((struct thread_info *)
(task->stack))->cpu_context.r1;
- else
+ else {
sp = (unsigned long *)&sp;
+ sp -= 2; /* Pick up caller of dump_stack() */
+ }
}

stack = sp;


\
 
 \ /
  Last update: 2010-02-24 22:03    [W:0.026 / U:1.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site