summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vbexport/tlcl_stub.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/vbexport/tlcl_stub.c b/lib/vbexport/tlcl_stub.c
index 63e70bc2e96..241bceb1277 100644
--- a/lib/vbexport/tlcl_stub.c
+++ b/lib/vbexport/tlcl_stub.c
@@ -41,7 +41,12 @@ VbError_t VbExTpmOpen(void)
VbError_t VbExTpmSendReceive(const uint8_t* request, uint32_t request_length,
uint8_t* response, uint32_t* response_length)
{
- if (tis_sendrecv(request, request_length, response, response_length))
+ int err;
+
+ bootstage_start(BOOTSTAGE_TPM_SEND_RECV, "tpm_send_recv");
+ err = tis_sendrecv(request, request_length, response, response_length);
+ bootstage_accum(BOOTSTAGE_TPM_SEND_RECV);
+ if (err)
return TPM_E_IOERROR;
return TPM_SUCCESS;
}