From: "Steven J. Magnani" <steve@digidescorp.com>
To: microblaze-uclinux@itee.uq.edu.au
Cc: monstr@monstr.eu, linux-kernel@vger.kernel.org,
"Steven J. Magnani" <steve@digidescorp.com>
Subject: [PATCH] microblaze: Begin stack dump with caller of dump_stack()
Date: Wed, 24 Feb 2010 15:00:39 -0600 [thread overview]
Message-ID: <1267045239-7091-1-git-send-email-steve@digidescorp.com> (raw)
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;
reply other threads:[~2010-02-24 21:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1267045239-7091-1-git-send-email-steve@digidescorp.com \
--to=steve@digidescorp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=microblaze-uclinux@itee.uq.edu.au \
--cc=monstr@monstr.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome