summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Duda <pdk@semihalf.com>2020-08-28 14:47:20 +0200
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-01 21:28:49 +0000
commit4565af0f5bb5680ac3f6902b5bcb6ebabe9458fe (patch)
tree3c05a7148087c390083b6cba65a823d4843e7634
parentc3edeb9b7904d925435a4afd9346161e9001525f (diff)
downloadchrome-ec-4565af0f5bb5680ac3f6902b5bcb6ebabe9458fe.tar.gz
common/system: Use beginning of panic data for calculations
panic_get_data() function in some cases doesn't return the beginning of panic data. We should use get_panic_data_start() BUG=b:165773837, b:162254118 BRANCH=none TEST=Compile firmware. Flash EC RW on eve. while running RW firmware issue 'crash watchdog' command. Check if RW properly reports that reset cause was sysjump. Signed-off-by: Patryk Duda <pdk@semihalf.com> Change-Id: I2c0a7e4555b8c2e43487222d2d6c4500448ac80d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2379846 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4455291 Commit-Queue: Rob Barnes <robbarnes@google.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Tested-by: Rob Barnes <robbarnes@google.com>
-rw-r--r--common/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c
index 80d41f5022..31f68f100a 100644
--- a/common/system.c
+++ b/common/system.c
@@ -829,7 +829,7 @@ void system_common_pre_init(void)
* Put the jump data before the panic data, or at the end of RAM if
* panic data is not present.
*/
- addr = (uintptr_t)panic_get_data();
+ addr = get_panic_data_start();
if (!addr)
addr = CONFIG_RAM_BASE + CONFIG_RAM_SIZE;