summaryrefslogtreecommitdiffstats
path: root/src/usr/secureboot/trusted/trustedbootUtils.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/secureboot/trusted/trustedbootUtils.C')
-rw-r--r--src/usr/secureboot/trusted/trustedbootUtils.C17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/usr/secureboot/trusted/trustedbootUtils.C b/src/usr/secureboot/trusted/trustedbootUtils.C
index 25cd56e03..5f140382c 100644
--- a/src/usr/secureboot/trusted/trustedbootUtils.C
+++ b/src/usr/secureboot/trusted/trustedbootUtils.C
@@ -80,8 +80,19 @@ errlHndl_t tpmTransmit(TpmTarget * io_target,
return err;
}
+errlHndl_t tpmCreateErrorLog(const uint8_t i_modId,
+ const uint16_t i_reasonCode,
+ const uint64_t i_user1,
+ const uint64_t i_user2)
+{
+ errlHndl_t err = new ERRORLOG::ErrlEntry( ERRORLOG::ERRL_SEV_UNRECOVERABLE,
+ i_modId,
+ i_reasonCode,
+ i_user1,
+ i_user2,
+ true /*Add HB SW Callout*/ );
+ err->collectTrace( SECURE_COMP_NAME );
+ return err;
+}
-
-#ifdef __cplusplus
} // end TRUSTEDBOOT
-#endif
OpenPOWER on IntegriCloud