armv8: dump SP content when system crash

Change-Id: I8f1d068f10eddf467413fb459934b1cb85481bb0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2018-09-20 11:00:19 +08:00
parent 2897464340
commit 58d85a144d
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@
#include <common.h>
#include <linux/compiler.h>
#include <efi_loader.h>
#include <iomem.h>
DECLARE_GLOBAL_DATA_PTR;
#if defined(CONFIG_SPL_BUILD) || !defined(CONFIG_IRQ)
@ -205,6 +206,10 @@ void show_regs(struct pt_regs *regs)
for (i = 0; i < 29; i += 2)
printf("x%-2d: %016lx x%-2d: %016lx\n",
i, regs->regs[i], i+1, regs->regs[i+1]);
printf("\n");
iomem_show("SP", regs->sp, 0x00, 0xfc);
printf("\n");
#ifdef CONFIG_ROCKCHIP_CRASH_DUMP