summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-05-29 15:51:48 -0600
committerJack Rosenthal <jrosenth@chromium.org>2019-06-06 19:55:40 +0000
commitc723e723392aabc35747a6678b4b7931d7aeddb7 (patch)
tree2ebdd22275c369d0580641ddb23b8e782ff0b91a /core
parente12b71b1fe82af7bc804004147f33da5e29cced1 (diff)
downloadchrome-ec-c723e723392aabc35747a6678b4b7931d7aeddb7.tar.gz
ish: use magic number to verify persistent data
Move persistent data definitions to a structure and have linker script define the address of the symbol into the AON ROM (persistent data storage). Use the magic number "ISHd" to verify persistent data storage and copy to static memory when valid. Commit changes from the local copy during reset. BUG=b:133779707,b:133647823,b:132059981 BRANCH=none TEST=power-on is only reset flag under cold reset, panic data persists, watchdog reset produces correct reset flags, UART always printing system info on boot Change-Id: I65a458cc2656f8fe26361ef2117ceb5439edff6c Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1636293 Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/minute-ia/ec.lds.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/minute-ia/ec.lds.S b/core/minute-ia/ec.lds.S
index 55102d5ae5..2a303a1f94 100644
--- a/core/minute-ia/ec.lds.S
+++ b/core/minute-ia/ec.lds.S
@@ -206,4 +206,8 @@ SECTIONS
def_irq_low = ABSOLUTE(default_int_handler) & 0xFFFF;
def_irq_high = ABSOLUTE(default_int_handler) >> 16;
+
+#ifdef CONFIG_ISH_PM_AONTASK
+ ish_persistent_data_aon = ABSOLUTE(CONFIG_AON_ROM_BASE);
+#endif
}