diff options
author | nagendra modadugu <ngm@google.com> | 2017-12-13 15:32:03 -0800 |
---|---|---|
committer | nagendra modadugu <ngm@google.com> | 2017-12-13 15:32:03 -0800 |
commit | 9eb074bfa3d0e7fa271fe8cf5aed5821e43b9ba9 (patch) | |
tree | 2021e5d0d74015532e8a2a721184fa8cd2a2f330 | |
parent | 1d3b7dacf80d5003a816a38ad4481b5cf7cb8c80 (diff) | |
download | tpm2-9eb074bfa3d0e7fa271fe8cf5aed5821e43b9ba9.tar.gz |
Revert "Revert "report successful startup to the platform""
This reverts commit 1d3b7dacf80d5003a816a38ad4481b5cf7cb8c80.
(Reapply ae8d044cd15f49f56de4db84da7203a0ac2ff783, which
broke the build, but has now been fixed upstream. This
revert being done to unblock the automerger)
BUG: 70533835
Test: none
-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); |