From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH] xen: arm64: more useful logging on bad trap. Date: Wed, 18 Feb 2015 15:36:49 +0000 Message-ID: <54E4B191.3040308@linaro.org> References: <1424272771-25072-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1424272771-25072-1-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 , xen-devel@lists.xen.org Cc: tim@xen.org, jintack@cs.columbia.edu, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 18/02/2015 15:19, Ian Campbell wrote: > diff --git a/xen/arch/arm/arm64/traps.c b/xen/arch/arm/arm64/traps.c > index 1693b5d..89b8eb3 100644 > --- a/xen/arch/arm/arm64/traps.c > +++ b/xen/arch/arm/arm64/traps.c > @@ -24,11 +24,6 @@ > > #include > > -asmlinkage void do_trap_serror(struct cpu_user_regs *regs) > -{ > - panic("Unhandled serror trap"); > -} > - > static const char *handler[]= { > "Synchronous Abort", > "IRQ", > @@ -38,11 +33,13 @@ static const char *handler[]= { > > asmlinkage void do_bad_mode(struct cpu_user_regs *regs, int reason) > { > - uint64_t esr = READ_SYSREG64(ESR_EL2); > - printk("Bad mode in %s handler detected, code 0x%08"PRIx64"\n", > - handler[reason], esr); While you are modifying this function. Can you add a newline after the declarations? Other than that: Reviewed-by: Julien Grall Regards, -- Julien Grall