diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2017-12-11 23:31:19 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-12-11 23:31:19 +0000 |
commit | 40e9f967e4ef7613f63994378a06db365194d604 (patch) | |
tree | 2021e5d0d74015532e8a2a721184fa8cd2a2f330 | |
parent | f91bf20527dae2d21fa017703093b889e7765463 (diff) | |
parent | ae8d044cd15f49f56de4db84da7203a0ac2ff783 (diff) | |
download | tpm2-40e9f967e4ef7613f63994378a06db365194d604.tar.gz |
report successful startup to the platform
am: ae8d044cd1
Change-Id: I7d8c51da6dc7def3cc0909e866f56b0e4683911d
-rw-r--r-- | Startup.c | 3 | ||||
-rw-r--r-- | include/tpm2/Platform.h | 6 |
2 files changed, 9 insertions, 0 deletions
@@ -163,5 +163,8 @@ TPM2_Startup( // The H-CRTM state no longer matters g_DrtmPreStartup = FALSE; + if (startup == SU_RESET) + _plat__ResetCallback(); + return TPM_RC_SUCCESS; } diff --git a/include/tpm2/Platform.h b/include/tpm2/Platform.h index f7bcbcd..4779594 100644 --- a/include/tpm2/Platform.h +++ b/include/tpm2/Platform.h @@ -384,6 +384,12 @@ _plat__GetFwVersion( uint32_t *fw2 ); +// A function to call after every successful SU_RESET TPM2_Startup. +LIB_EXPORT void +_plat__ResetCallback( + void +); + int uart_printf(const char *format, ...); #define ecprintf(format, args...) uart_printf(format, ## args); |