diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2019-06-14 10:39:22 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-14 22:05:58 +0000 |
commit | f5838f96e4baf263891752fef86c9bf9d03a2907 (patch) | |
tree | 54c48a6779faae9ee267e2855a1a90fcfbbb3c7b /include/panic.h | |
parent | 0ad3ac0876bdda14129d9a8aa104e11ff1e248aa (diff) | |
download | chrome-ec-f5838f96e4baf263891752fef86c9bf9d03a2907.tar.gz |
minute-ia: show EC task information during panic
In order to receive better debug info from panic reports, include the
current task when the panic was encountered.
BUG=b:134071217
BRANCH=none
TEST=saw that task was "CONSOLE" when typing "crash divzero" from
console
Change-Id: I2fa9f931eea0274a762f812b6a7a8281cb8fcc5f
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1660018
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/panic.h')
-rw-r--r-- | include/panic.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h index afbe4b9357..d956eebf6a 100644 --- a/include/panic.h +++ b/include/panic.h @@ -65,6 +65,9 @@ struct x86_panic_data { uint32_t edx; uint32_t esi; uint32_t edi; + + /* Task id at time of panic */ + uint8_t task_id; }; /* Data saved across reboots */ |