summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2021-02-04 12:43:54 +0000
committerCommit Bot <commit-bot@chromium.org>2021-06-17 11:04:49 +0000
commit73980001a7bc785e878bcc4af7337b325f8aa873 (patch)
tree029a29758c2114d9f2511d39975cf2b0094e2e32 /board
parent2219c2267a301978877fd17f5e60ed850bf7956d (diff)
downloadchrome-ec-73980001a7bc785e878bcc4af7337b325f8aa873.tar.gz
nocturne: Exclude RV32I panic data from structure
This patch excludes RV32I core specific data in panic data structure for nocturne device to keep the same size of the structure in nocturne EC RO and ToT EC. This is necessary to prevent panic data corruption and access jump data correctly (see bug in description for more details). Nocturne doesn't include RV32I panic data in its EC RO panic data structure (checked include/panic.h on nocturne EC RO commit: `git show d118ba10a:include/panic.h`). BUG=b:165773837, b:160676144 BRANCH=none TEST=Run EC ToT on Nocturne. Make sure you are in EC RW. Crash EC using 'crash assert'. Make sure that EC RW after sysjump doesn't report unknown reset cause. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I5e9ef694c50e3271fe66fb4ac985da4e0924b734 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965923 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/nocturne/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/nocturne/board.h b/board/nocturne/board.h
index b1d750f14f..a686a55e8b 100644
--- a/board/nocturne/board.h
+++ b/board/nocturne/board.h
@@ -119,6 +119,7 @@
#define CONFIG_CHIPSET_RESET_HOOK
#define CONFIG_CPU_PROCHOT_ACTIVE_LOW
#define CONFIG_DPTF
+#define CONFIG_DO_NOT_INCLUDE_RV32I_PANIC_DATA
#define CONFIG_POWER_COMMON
#define CONFIG_POWER_BUTTON
#define CONFIG_POWER_BUTTON_X86