diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2018-01-24 15:07:43 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-30 14:54:17 -0800 |
commit | 8d29b3dae79d48c67d796c3892185c17d84d074a (patch) | |
tree | df043e57d22d09e4556b80d37e9c3133718b0be4 /core | |
parent | 9362b0620159acadc5f8231407acca746c1d2c39 (diff) | |
download | chrome-ec-8d29b3dae79d48c67d796c3892185c17d84d074a.tar.gz |
stm32: Fix bkpdata accounting
stm32f0 has 20 bytes (not 20 words) of VBAT-backed RAM. Make more
efficient use of our limited storage to prevent trying to use storage
that doesn't exist.
BUG=b:71333840
BRANCH=None
TEST=Negotiate PD, run "reboot" on scarlet EC console, verify reset path
is taken in pd_partner_port_reset().
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Ie4c303b74a1b82b84ec971cdcc19c2b21a0032e7
Reviewed-on: https://chromium-review.googlesource.com/885461
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/cortex-m0/watchdog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/cortex-m0/watchdog.c b/core/cortex-m0/watchdog.c index 3d53b4979c..159ee9d030 100644 --- a/core/cortex-m0/watchdog.c +++ b/core/cortex-m0/watchdog.c @@ -26,8 +26,10 @@ void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp) } /* Log PC. If we were in task context, log task id too. */ +#ifdef CONFIG_SOFTWARE_PANIC panic_set_reason(PANIC_SW_WATCHDOG, stack[6], (excep_lr & 0xf) == 1 ? 0xff : task_get_current()); +#endif panic_printf("### WATCHDOG PC=%08x / LR=%08x / pSP=%08x ", stack[6], stack[5], psp); |