From dc197619cd64104d30e5155e0cfec332ec4bce07 Mon Sep 17 00:00:00 2001 From: Furquan Shaikh Date: Mon, 6 Jul 2015 13:13:32 -0700 Subject: [PATCH] arm64: Print sp value when dumping registers for exception BUG=None BRANCH=None TEST=Compiles successfully, sp verified during exception Change-Id: Idbeb93b1dbf163e2d86cd42369941ff98a3d2d9e Signed-off-by: Patrick Georgi Original-Commit-Id: ca73b40f0248497143b6ab42bd0f5cc6cddf7713 Original-Change-Id: I38ee403200acb0e3d9015231c274568930b58987 Original-Signed-off-by: Furquan Shaikh Original-Reviewed-on: https://chromium-review.googlesource.com/283542 Original-Tested-by: Furquan Shaikh Original-Reviewed-by: Aaron Durbin Original-Trybot-Ready: Furquan Shaikh Original-Commit-Queue: Furquan Shaikh Reviewed-on: http://review.coreboot.org/10842 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- src/arch/arm64/armv8/exception.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/arch/arm64/armv8/exception.c b/src/arch/arm64/armv8/exception.c index a633e3afb8..afbaf6da78 100644 --- a/src/arch/arm64/armv8/exception.c +++ b/src/arch/arm64/armv8/exception.c @@ -68,6 +68,7 @@ static void print_regs(struct exc_state *exc_state) printk(BIOS_DEBUG, "ESR = 0x%016llx\n", elx_esr); printk(BIOS_DEBUG, "SPSR = 0x%08llx\n", elx->spsr); printk(BIOS_DEBUG, "FAR = 0x%016llx\n", elx_far); + printk(BIOS_DEBUG, "SP = 0x%016llx\n", regs->sp); for (i = X0_INDEX; i < XMAX_INDEX; i++) printk(BIOS_DEBUG, "X%02d = 0x%016llx\n", i, regs->x[i]); }