From: Julien Grall <julien.grall@linaro.org>
To: xen-devel@lists.xenproject.org
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org,
ian.campbell@citrix.com, Julien Grall <julien.grall@linaro.org>,
patches@linaro.org
Subject: [PATCH] xen/arm: Implement 32-bit dump stack
Date: Wed, 23 Oct 2013 17:15:17 +0100 [thread overview]
Message-ID: <1382544917-4978-1-git-send-email-julien.grall@linaro.org> (raw)
Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
xen/arch/arm/traps.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
index 4c0fc32..287dd7b 100644
--- a/xen/arch/arm/traps.c
+++ b/xen/arch/arm/traps.c
@@ -629,12 +629,20 @@ static void show_guest_stack(struct vcpu *v, struct cpu_user_regs *regs)
return;
case PSR_MODE_FIQ:
+ sp = regs->sp_fiq;
+ break;
case PSR_MODE_IRQ:
+ sp = regs->sp_irq;
+ break;
case PSR_MODE_SVC:
+ sp = regs->sp_svc;
+ break;
case PSR_MODE_ABT:
+ sp = regs->sp_abt;
+ break;
case PSR_MODE_UND:
- printk("No stack trace for 32-bit guest kernel-mode\n");
- return;
+ sp = regs->sp_und;
+ break;
#ifdef CONFIG_ARM_64
case PSR_MODE_EL1t:
--
1.8.3.1
reply other threads:[~2013-10-23 16:15 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=1382544917-4978-1-git-send-email-julien.grall@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=patches@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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;
as well as URLs for NNTP newsgroup(s).