summaryrefslogtreecommitdiff
path: root/include/panic.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-06-28 10:53:26 +0800
committerChromeBot <chrome-bot@google.com>2013-07-10 11:16:18 -0700
commit01ed345ebd7a5928298d52afbd8358c55b816c08 (patch)
tree2e68708df85bfc29f67ff9f666083d25e2f17232 /include/panic.h
parentd67f83a63cc0a03994a2cc5c0565c7b51f773816 (diff)
downloadchrome-ec-01ed345ebd7a5928298d52afbd8358c55b816c08.tar.gz
Uprev panic data struct version
The struct was changed in commit 74c34bbad, but the struct version was left as 1. We need to uprev this so the data returned by host command is useful. BUG=chrome-os-partner:16901 chrome-os-partner:20548 TEST='ectool panicinfo' with new and old struct. Compare output with output from console command 'panicinfo'. BRANCH=None Change-Id: I4df3142497dc5ee21d100c4cb8118fb7a0ce7a7e Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/60314 Reviewed-by: Daisuke Nojiri <dnojiri@google.com>
Diffstat (limited to 'include/panic.h')
-rw-r--r--include/panic.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/panic.h b/include/panic.h
index 6caaf6a2d8..256ce84e87 100644
--- a/include/panic.h
+++ b/include/panic.h
@@ -14,11 +14,14 @@
/* Data saved across reboots */
struct panic_data {
uint8_t arch; /* Architecture (PANIC_ARCH_*) */
- uint8_t struct_version; /* Structure version (currently 1) */
+ uint8_t struct_version; /* Structure version (currently 2) */
uint8_t flags; /* Flags (PANIC_DATA_FLAG_*) */
uint8_t reserved; /* Reserved; set 0 */
- uint32_t regs[12]; /* psp, ipsr, msp, r4-r11, lr(=exc_return) */
+ uint32_t regs[12]; /* psp, ipsr, msp, r4-r11, lr(=exc_return).
+ * In version 1, that was uint32_t regs[11] =
+ * psp, ipsr, lr, r4-r11
+ */
uint32_t frame[8]; /* r0-r3, r12, lr, pc, xPSR */
uint32_t mmfs;