From patchwork Wed Oct 23 16:15:17 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 21232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BCBDC20F5A for ; Wed, 23 Oct 2013 16:15:40 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f64sf2579103yha.10 for ; Wed, 23 Oct 2013 09:15:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=g5OUStOkQfdv6uacyGyzgfVwzpg4zNKVIbwx6rVAw8o=; b=Mtg1KQyFTCSvIuxvDmNumfXn3vhqBGqLnmtIn8fWtk9ylC/qEmv569XAavrIAYlUyq CjllKXXZVA2gXA3PZt5JBRRqOiKKSDsiJ9oo4PtkCXt/OtsZE5IHhF6UnGSR9i9vFSWa oPsswa7srPmhlfADoziqM/08AkYVEOm6cOo2gr8KP9qXZyIrwgESj+Do8Irq1qaZtV4p EwUOlrFmQqSvXsRG4m47ELKYUvfgoCk+5CCEKjyvrNfk6wb24U87zQuQMLurXUyS0pFq i6vUT6S5g7U8ZqbVLgdARZoZUXaCuLJYfcbdQmNH8g7dWR7oZ50yD45fEUb8as8GBK3V vD0g== X-Received: by 10.58.171.135 with SMTP id au7mr995349vec.22.1382544939779; Wed, 23 Oct 2013 09:15:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.132.73 with SMTP id os9ls518541qeb.98.gmail; Wed, 23 Oct 2013 09:15:39 -0700 (PDT) X-Received: by 10.52.170.232 with SMTP id ap8mr53076vdc.40.1382544939666; Wed, 23 Oct 2013 09:15:39 -0700 (PDT) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id gq10si7364423vdc.30.2013.10.23.09.15.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Oct 2013 09:15:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id m10so556321vbh.20 for ; Wed, 23 Oct 2013 09:15:39 -0700 (PDT) X-Gm-Message-State: ALoCoQkTKq9o8auCTdbF9R5qhweU9qUbHfBJ3XAnndwQ0/MOwnSqY20P+NF7TnnKKbq++vwNUGUV X-Received: by 10.52.37.69 with SMTP id w5mr1193395vdj.32.1382544939527; Wed, 23 Oct 2013 09:15:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp323506vcz; Wed, 23 Oct 2013 09:15:38 -0700 (PDT) X-Received: by 10.180.72.195 with SMTP id f3mr2203684wiv.51.1382544938508; Wed, 23 Oct 2013 09:15:38 -0700 (PDT) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx.google.com with ESMTPS id or5si9700449wjc.93.2013.10.23.09.15.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Oct 2013 09:15:38 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.179 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=209.85.212.179; Received: by mail-wi0-f179.google.com with SMTP id hm4so1166133wib.12 for ; Wed, 23 Oct 2013 09:15:37 -0700 (PDT) X-Received: by 10.180.100.194 with SMTP id fa2mr2294421wib.44.1382544937766; Wed, 23 Oct 2013 09:15:37 -0700 (PDT) Received: from localhost.localdomain ([109.144.228.239]) by mx.google.com with ESMTPSA id dq11sm18248109wid.3.2013.10.23.09.15.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Oct 2013 09:15:37 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Cc: ian.campbell@citrix.com, tim@xen.org, patches@linaro.org, stefano.stabellini@eu.citrix.com, Julien Grall Subject: [PATCH] xen/arm: Implement 32-bit dump stack Date: Wed, 23 Oct 2013 17:15:17 +0100 Message-Id: <1382544917-4978-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Julien Grall --- 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: