[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1267045239-7091-1-git-send-email-steve@digidescorp.com>
Date: Wed, 24 Feb 2010 15:00:39 -0600
From: "Steven J. Magnani" <steve@...idescorp.com>
To: microblaze-uclinux@...e.uq.edu.au
Cc: monstr@...str.eu, linux-kernel@...r.kernel.org,
"Steven J. Magnani" <steve@...idescorp.com>
Subject: [PATCH] microblaze: Begin stack dump with caller of dump_stack()
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@...idescorp.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists