summaryrefslogtreecommitdiff
path: root/include/link_defs.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2016-08-05 10:25:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-24 13:53:26 -0700
commitb94747d501ad7e4347b50c3ea55e615422d96212 (patch)
treeb2c078ca5b87a8af29827474789475903f5b316f /include/link_defs.h
parent5fa727805ca3222e9268755c54c15bbf87c5b2bd (diff)
downloadchrome-ec-b94747d501ad7e4347b50c3ea55e615422d96212.tar.gz
cr50: reset only the TPM state on SYS_RST_L
Rather than doing a full cr50 reset when the system reset SYS_RST_L is asserted, just reset the state of the TPM task and library. Re-clear .bss for those modules, then re-initialize. BRANCH=none BUG=chrome-os-partner:52366 CQ-DEPEND=CL:366792 TEST=make buildall; test on Gru Trigger a SYS_RST_L by using the AP's reboot command, power off/on, log in/out/in. See that the Cr50 does not reboot and the firmware and userspace are still happy about the TPM. Change-Id: I32cd2bb72316f68c74db77a20a8d09112b402d4b Signed-off-by: Randall Spangler <rspangler@chromium.org> Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/361680
Diffstat (limited to 'include/link_defs.h')
-rw-r--r--include/link_defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h
index 69b964d1d8..e55da8bd50 100644
--- a/include/link_defs.h
+++ b/include/link_defs.h
@@ -87,6 +87,12 @@ extern const void *__irqhandler[];
/* Shared memory buffer. Use via shared_mem.h interface. */
extern uint8_t __shared_mem_buf[];
+/* Image sections used by the TPM2 library */
+extern uint8_t *__bss_libtpm2_start;
+extern uint8_t *__bss_libtpm2_end;
+extern uint8_t *__data_libtpm2_start;
+extern uint8_t *__data_libtpm2_end;
+
/* Image sections. */
extern const void *__ro_end;
extern const void *__data_start;