X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FLibrary%2FTpmCommLib%2FTisPc.c;fp=SecurityPkg%2FLibrary%2FTpmCommLib%2FTisPc.c;h=c157d41b72fedf72553ebcff70b6d8bf0409b5f5;hp=3d74a012dfae324a2c9843179dae2a3bad2c6aa3;hb=f941becdd8e47543227315fe1f2622eb8a106b71;hpb=89be2b037f11cc64bd14fd5db41dc6e4a2171cdc diff --git a/SecurityPkg/Library/TpmCommLib/TisPc.c b/SecurityPkg/Library/TpmCommLib/TisPc.c index 3d74a012df..c157d41b72 100644 --- a/SecurityPkg/Library/TpmCommLib/TisPc.c +++ b/SecurityPkg/Library/TpmCommLib/TisPc.c @@ -1,7 +1,7 @@ /** @file Basic TIS (TPM Interface Specification) functions. -Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.
+Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -144,7 +144,7 @@ TisPcPrepareCommand ( /** Get the control of TPM chip by sending requestUse command TIS_PC_ACC_RQUUSE - to ACCESS Register in the time of default TIS_TIMEOUT_D. + to ACCESS Register in the time of default TIS_TIMEOUT_A. @param[in] TisReg Pointer to TIS register. @@ -170,11 +170,14 @@ TisPcRequestUseTpm ( } MmioWrite8((UINTN)&TisReg->Access, TIS_PC_ACC_RQUUSE); + // + // No locality set before, ACCESS_X.activeLocality MUST be valid within TIMEOUT_A + // Status = TisPcWaitRegisterBits ( &TisReg->Access, (UINT8)(TIS_PC_ACC_ACTIVE |TIS_PC_VALID), 0, - TIS_TIMEOUT_D + TIS_TIMEOUT_A ); return Status; }