From fe0f3f8fa7a238a71307cbe2d95eeb108b1a721e Mon Sep 17 00:00:00 2001 From: Patryk Duda Date: Thu, 4 Feb 2021 12:43:54 +0000 Subject: octopus: Exclude RV32I panic data from structure This patch excludes RV32I core specific data in panic data structure for all octopus devices to keep the same size of the structure in octopus 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). All octopus family devices doesn't include RV32I panic data in their EC RO panic data structures (checked include/panic.h on firmware-octopus branch). BUG=b:165773837 BRANCH=none TEST=Run EC ToT on Ampton. 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 Change-Id: Ia8c367cc3b4e2b24f21e907f8dafa49aeb7d40e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2673417 Reviewed-by: Patrick Georgi Commit-Queue: Patrick Georgi --- baseboard/octopus/baseboard.h | 1 + 1 file changed, 1 insertion(+) (limited to 'baseboard/octopus') diff --git a/baseboard/octopus/baseboard.h b/baseboard/octopus/baseboard.h index 420f6f6715..1d580b233f 100644 --- a/baseboard/octopus/baseboard.h +++ b/baseboard/octopus/baseboard.h @@ -89,6 +89,7 @@ #define CONFIG_BOARD_VERSION_CBI #define CONFIG_LOW_POWER_IDLE #define CONFIG_DPTF +#define CONFIG_DO_NOT_INCLUDE_RV32I_PANIC_DATA #define CONFIG_BOARD_HAS_RTC_RESET #define CONFIG_LED_ONOFF_STATES #define CONFIG_CMD_CHARGEN -- cgit v1.2.1