diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-05-02 09:58:48 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-04 03:17:25 -0700 |
commit | c1b08cd1b240332abfac339823a7468f52ff843d (patch) | |
tree | 36dab0e83d126a10a34e046a1a017eced5d19ce4 /chip | |
parent | acb893a320f0398d25083a9ea102329c619845ab (diff) | |
download | chrome-ec-c1b08cd1b240332abfac339823a7468f52ff843d.tar.gz |
ish: preserve panic data across reset
This commit stores panic data across reset by storing panic data in
the last 256 bytes of AON memory (before AON ROM).
> crash divzero
========== PANIC ==========
Reason: Divide By Zero
Error Code = 0xFF00B60C
EIP = 0xFF010008
CS = 0x00010202
EFLAGS = 0x00103085
EAX = 0x00000001
EBX = 0xFF01B118
ECX = 0x00000000
EDX = 0x00000000
ESI = 0x00000000
EDI = 0xFF017E0E
Resetting system...
===========================
... ISH reset ...
> panicinfo
Saved panic data: (NEW)
Reason: Divide By Zero
Error Code = 0xFF00B60C
EIP = 0xFF010008
CS = 0x00010202
EFLAGS = 0x00103085
EAX = 0x00000001
EBX = 0xFF01B118
ECX = 0x00000000
EDX = 0x00000000
ESI = 0x00000000
EDI = 0xFF017E0E
BUG=b:129425206
BRANCH=none
TEST=see console output above (on arcada_ish)
Change-Id: I5c9e458b53076eafe7fa50ba851f2c6e863f2247
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1593418
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/ish/config_chip.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chip/ish/config_chip.h b/chip/ish/config_chip.h index 24cd558f6c..e82aad8ed3 100644 --- a/chip/ish/config_chip.h +++ b/chip/ish/config_chip.h @@ -54,6 +54,11 @@ + CONFIG_AON_RAM_SIZE \ - CONFIG_AON_ROM_SIZE) +/* Store persistent panic data in AON memory */ +#define CONFIG_PANIC_DATA_SIZE 0xFF +#define CONFIG_PANIC_DATA_BASE (CONFIG_AON_ROM_BASE \ + - CONFIG_PANIC_DATA_SIZE) + /* System stack size */ #define CONFIG_STACK_SIZE 1024 |