diff options
-rw-r--r-- | Startup.c | 5 | ||||
-rw-r--r-- | include/tpm2/Platform.h | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -163,5 +163,10 @@ TPM2_Startup( // The H-CRTM state no longer matters g_DrtmPreStartup = FALSE; +#ifdef EMBEDDED_MODE + if (startup == SU_RESET) + _plat__ResetCallback(); +#endif + 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); |