From: Tim Deegan Subject: Re: [PATCH 32/45] xen: arm: show_registers() support for 64-bit. Date: Thu, 14 Feb 2013 14:59:17 +0000 Message-ID: <20130214145917.GC83752@ocelot.phlegethon.org> References: <1358956576.17440.60.camel@zakaz.uk.xensource.com> <1358956611-8432-32-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1358956611-8432-32-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: stefano.stabellini@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 15:56 +0000 on 23 Jan (1358956598), Ian Campbell wrote: > -static void _show_registers(struct cpu_user_regs *regs, > - struct reg_ctxt *ctxt, > - int guest_mode) > + > +static void _show_registers_32(struct cpu_user_regs *regs, Can we drop the _extraneous _underscore while we're here? > { > - printk(" SP: %08"PRIx32" LR: %08"PRIx32"\n", regs->sp, regs->lr); > + printk("SCTLR_EL1: %08"PRIx32"\n", ctxt->sctlr); > + printk(" TCR_EL1: %08"PRIx32"\n",ctxt->tcr); Missing space ------------------------------^ > +#ifdef CONFIG_ARM_32 > printk("HTTBR %"PRIx64"\n", READ_CP64(HTTBR)); > printk("HDFAR %"PRIx32"\n", READ_CP32(HDFAR)); > printk("HIFAR %"PRIx32"\n", READ_CP32(HIFAR)); > printk("HPFAR %"PRIx32"\n", READ_CP32(HPFAR)); > printk("HCR %08"PRIx32"\n", READ_CP32(HCR)); > printk("HSR %"PRIx32"\n", READ_CP32(HSR)); > + printk("VTTBR %010"PRIx64"\n", READ_CP64(VTTBR)); > printk("\n"); > > printk("DFSR %"PRIx32" DFAR %"PRIx32"\n", READ_CP32(DFSR), READ_CP32(DFAR)); > printk("IFSR %"PRIx32" IFAR %"PRIx32"\n", READ_CP32(IFSR), READ_CP32(IFAR)); > printk("\n"); > +#else > + reg = READ_SYSREG64(TTBR0_EL2); printk("TTBR0_EL2: %"PRIx64"\n", reg); Any reason this (&c) isn't printk("...", READ_SYSREG64(...)) like the arm32 ones? Tim.