summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2021-08-23 17:13:38 +0200
committerCommit Bot <commit-bot@chromium.org>2021-09-16 12:20:24 +0000
commit643635b91ee40def104188cf9623a9a28f25bd4f (patch)
treef8560efd19838cc85033caeca3cb02dc03f98362
parented42e86fd3c444982aa7c313c4530ad89c310191 (diff)
downloadchrome-ec-643635b91ee40def104188cf9623a9a28f25bd4f.tar.gz
hatch_fp/board: Define CONFIG_PANIC_STRIP_GPR in config
Fingerprint MCU is processing sensitive data (fingerprints, keys). Defining this option will prevent leaking the data in General Purpose Registers. BUG=b:193408648 BRANCH=none TEST=`make BOARD=bloonchipper`. Flash image on dragonclaw. 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: I45f075493cecc41aad39a01053ba86afc37a52b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3114647 Commit-Queue: Marcin Wojtas <mwojtas@google.com> Reviewed-by: Craig Hesling <hesling@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/hatch_fp/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/hatch_fp/board.h b/board/hatch_fp/board.h
index 0ae47ebbc1..aa097d8b7e 100644
--- a/board/hatch_fp/board.h
+++ b/board/hatch_fp/board.h
@@ -236,6 +236,7 @@
#define CONFIG_SPI
#define CONFIG_STM_HWTIMER32
#define CONFIG_WP_ACTIVE_HIGH
+#define CONFIG_PANIC_STRIP_GPR
#ifdef SECTION_IS_RW
#define CONFIG_LOW_POWER_IDLE