diff options
author | Patryk Duda <pdk@semihalf.com> | 2020-08-28 14:47:20 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-01 11:39:20 +0000 |
commit | b95c5c31c0b0f9082f9bfbe5ec6eaaa24c1e3294 (patch) | |
tree | 96c7594addab45806042ebccc8ab6aaa4b87052a | |
parent | a638524b69e29006075789faf7ff81202562185e (diff) | |
download | chrome-ec-b95c5c31c0b0f9082f9bfbe5ec6eaaa24c1e3294.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>
-rw-r--r-- | common/system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/system.c b/common/system.c index eed9e4204f..fbf5895492 100644 --- a/common/system.c +++ b/common/system.c @@ -812,7 +812,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; |