summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-07-28 17:17:19 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-29 19:22:04 -0700
commit3d01f46a5b38d5e3ad9fd07a32ff4011523d9c19 (patch)
treebb03301bfcc4a9d20d3813f44b06e70960429e1e /include/system.h
parent17276a7a7e55329e2c67486094e4a80d85b72950 (diff)
downloadchrome-ec-3d01f46a5b38d5e3ad9fd07a32ff4011523d9c19.tar.gz
HACK tpm: reset fallback counter when ready
As a temp measure until a proper solution is implemented, reset the restart counter when the PCR_Read command is issued by the host. This is a good indication that Chrome OS is through the boot process, as PCR value is used to determine the boot mode. BRANCH=none BUG=chrome-os-partner:55667 TEST=installed the new image on a Kevin cr50 and rebooted it in normal and recovery modes, observed on the cr50 console the message like > system_process_retry_counter:retry counter 1 Change-Id: Ib55e161d5edbf8f6e2d387fd756b94aa53c20ed8 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/364311 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index 39bdb95cd0..8d792123ff 100644
--- a/include/system.h
+++ b/include/system.h
@@ -458,4 +458,12 @@ uintptr_t system_get_fw_reset_vector(uintptr_t base);
*/
int system_is_reboot_warm(void);
+/**
+ * On systems with protection from a failing RW update: read the retry counter
+ * and act on it.
+ *
+ * @return EC_SUCCESS if no flash write errors were encounterd.
+ */
+int system_process_retry_counter(void);
+
#endif /* __CROS_EC_SYSTEM_H */