summaryrefslogtreecommitdiff
path: root/chip/npcx/system.c
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2021-08-23 14:21:08 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-28 18:17:10 +0000
commitcf96131c91213628e56ed82527b83d20177609bf (patch)
treeaea9b8bfb672e86cd654deebe442e9cd2bac7a36 /chip/npcx/system.c
parentd1d2aeb01fda2c069c7cdb543b5e0fbcbe755613 (diff)
downloadchrome-ec-cf96131c91213628e56ed82527b83d20177609bf.tar.gz
cortex-m/panic: Introduce CONFIG_PANIC_STRIP_GPR option
If set, this option will prevent saving General Purpose Registers during panic. When software panic occurs, R4 and R5 will be saved, because they contain additional information about panic. This should be enabled on boards which are processing sensitive data and panic could cause the leak. BUG=b:218982018,b:193408648 BRANCH=none TEST=Trigger panic using 'crash' command. After reboot use 'panicinfo' to check what was saved. When CPU exception occurred registers R0-R12 should be set to 0. In case of software panic, R4 and R5 can contain panic reason and additional information. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I06f9c4bb07f936f0822f70a05e19c8d99c68abfb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3114645 Commit-Queue: Marcin Wojtas <mwojtas@google.com> Reviewed-by: Craig Hesling <hesling@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> (cherry picked from commit 0bb062c8cd7c201571da60edd828c007dcbc436c) Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3508419 Reviewed-by: Patryk Duda <patrykd@google.com>
Diffstat (limited to 'chip/npcx/system.c')
0 files changed, 0 insertions, 0 deletions