diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-02-23 15:26:11 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-02-24 03:08:03 +0000 |
commit | a8628526a3a4790a1890ecffc6df1d42644697c8 (patch) | |
tree | b5ba7b6a1e708a4034ebed75fb168510c5aa75c4 /include/panic.h | |
parent | accd0da78954684274eb66d0d8d3a2683164e61b (diff) | |
download | chrome-ec-a8628526a3a4790a1890ecffc6df1d42644697c8.tar.gz |
panic: Send host event on panic detect
If a panic caused us to reboot, send a host event to notify the AP.
BUG=chrome-os-partner:36985
TEST=Manual on Samus. Trigger EC panic, verify that "Panic Reset in
previous boot" is seen in /var/log/eventlog.
BRANCH=Samus
Change-Id: Icf0d00a8cfc7aa788f3ceadd65fe3139f40df503
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/252410
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'include/panic.h')
-rw-r--r-- | include/panic.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/panic.h b/include/panic.h index 1097029002..122f0c317c 100644 --- a/include/panic.h +++ b/include/panic.h @@ -62,11 +62,13 @@ struct panic_data { /* Flags for panic_data.flags */ /* panic_data.frame is valid */ -#define PANIC_DATA_FLAG_FRAME_VALID (1 << 0) +#define PANIC_DATA_FLAG_FRAME_VALID (1 << 0) /* Already printed at console */ -#define PANIC_DATA_FLAG_OLD_CONSOLE (1 << 1) +#define PANIC_DATA_FLAG_OLD_CONSOLE (1 << 1) /* Already returned via host command */ -#define PANIC_DATA_FLAG_OLD_HOSTCMD (1 << 2) +#define PANIC_DATA_FLAG_OLD_HOSTCMD (1 << 2) +/* Already reported via host event */ +#define PANIC_DATA_FLAG_OLD_HOSTEVENT (1 << 3) /** * Write a string to the panic reporting device |