diff options
-rw-r--r-- | Platform.h | 6 | ||||
-rw-r--r-- | Startup.c | 3 |
2 files changed, 9 insertions, 0 deletions
@@ -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); @@ -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; } |