X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=SecurityPkg%2FTcg%2FTcgDxe%2FTcgDxe.c;h=f15e94353c686d622836e2f97238c5961df1bce9;hp=db7951cd9ad0f66ed26f207d31c2e41d2adef837;hb=3dd05ac3e6a047cd0e85f590a9886a8cd4fd7a16;hpb=4c9ed23eb6051ea2cd80cb5c8d9a935964b06b1f diff --git a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c index db7951cd9a..f15e94353c 100644 --- a/SecurityPkg/Tcg/TcgDxe/TcgDxe.c +++ b/SecurityPkg/Tcg/TcgDxe/TcgDxe.c @@ -1355,6 +1355,11 @@ DriverEntry ( return EFI_UNSUPPORTED; } + if (GetFirstGuidHob (&gTpmErrorHobGuid) != NULL) { + DEBUG ((EFI_D_ERROR, "TPM error!\n")); + return EFI_DEVICE_ERROR; + } + mTcgDxeData.TpmHandle = (TIS_TPM_HANDLE)(UINTN)TPM_BASE_ADDRESS; Status = TisPcRequestUseTpm (mTcgDxeData.TpmHandle); if (EFI_ERROR (Status)) { @@ -1362,10 +1367,6 @@ DriverEntry ( return Status; } - if (GetFirstGuidHob (&gTpmErrorHobGuid) != NULL) { - mTcgDxeData.BsCap.TPMPresentFlag = FALSE; - } - Status = GetTpmStatus (&mTcgDxeData.BsCap.TPMDeactivatedFlag); if (EFI_ERROR (Status)) { DEBUG ((