From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQuYf-0006Lh-Bo for barebox@lists.infradead.org; Thu, 07 Jun 2018 13:02:29 +0000 Received: by mail-pf0-x242.google.com with SMTP id b17-v6so4900272pfi.0 for ; Thu, 07 Jun 2018 06:02:19 -0700 (PDT) From: Andrey Smirnov Date: Thu, 7 Jun 2018 06:00:59 -0700 Message-Id: <20180607130108.5339-44-andrew.smirnov@gmail.com> In-Reply-To: <20180607130108.5339-1-andrew.smirnov@gmail.com> References: <20180607130108.5339-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [RESEND v3 43/52] ARM: interrupts64: Include ESR value in exception traceback To: barebox@lists.infradead.org Cc: Andrey Smirnov Oftentimes knowing the class of exception is not enough and full ESR value is needed to decode the specifics. Add code to print ESR as a part of excpetion traceback to provide that information. Signed-off-by: Andrey Smirnov --- arch/arm/cpu/interrupts_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/cpu/interrupts_64.c b/arch/arm/cpu/interrupts_64.c index 32c8dfcb2..f6f0c9d09 100644 --- a/arch/arm/cpu/interrupts_64.c +++ b/arch/arm/cpu/interrupts_64.c @@ -155,7 +155,8 @@ void do_sync(struct pt_regs *pt_regs, unsigned int esr, unsigned long far) return; } - printf("%s exception at 0x%016lx\n", esr_get_class_string(esr), far); + printf("%s exception (ESR 0x%08x) at 0x%016lx\n", esr_get_class_string(esr), + esr, far); do_exception(pt_regs); } -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox