armv8: dump registers when system crash
default provide: grf, pmugrf, cru and pmucru, it looks like: rockchip,px30-cru: ff2b0000: 0000304b 00001441 00000001 00000007 ff2b0010: 00007f00 00000000 00000000 00000000 ff2b0020: 00003053 00001441 00000001 00000007 ...... rockchip,px30-grf: ff140000: 00002222 00002222 00002222 00001111 ff140010: 00000000 00000000 00002200 00000033 ff140020: 00000000 00000000 00000000 00000202 ...... Change-Id: I1630b07cb9412103b737ac4c2f6d86cfe3c81fc1 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
737e12167d
commit
24cd8f3602
|
|
@ -206,6 +206,14 @@ void show_regs(struct pt_regs *regs)
|
|||
printf("x%-2d: %016lx x%-2d: %016lx\n",
|
||||
i, regs->regs[i], i+1, regs->regs[i+1]);
|
||||
printf("\n");
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_CRASH_DUMP
|
||||
iomem_show_by_compatible("-cru", 0, 0x400);
|
||||
iomem_show_by_compatible("-pmucru", 0, 0x400);
|
||||
iomem_show_by_compatible("-grf", 0, 0x400);
|
||||
iomem_show_by_compatible("-pmugrf", 0, 0x400);
|
||||
/* tobe add here ... */
|
||||
#endif
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -432,6 +432,12 @@ config ROCKCHIP_DEBUGGER
|
|||
and dump pt_regs when the timeout event trigger. This helps us to know cpu
|
||||
state when system hang.
|
||||
|
||||
config ROCKCHIP_CRASH_DUMP
|
||||
bool "Rockchip crash dump registers"
|
||||
help
|
||||
This enable dump registers when system crash, the registers you would like
|
||||
to dump can be added in show_regs().
|
||||
|
||||
config GICV2
|
||||
bool "ARM GICv2"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue