TPM1.2 is obsoleted by TPM2.0. switch TCG/TCG2 protocol check to apply this trend
Cc: Long, Qin <qin.l...@intel.com> Cc: Yao, Jiewen <jiewen....@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhang, Chao B <chao.b.zh...@intel.com> --- MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c index c26616ecfe..28aa2893c6 100644 --- a/MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c +++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/TcgMorLockSmm.c @@ -2,11 +2,11 @@ TCG MOR (Memory Overwrite Request) Lock Control support (SMM version). This module initilizes MemoryOverwriteRequestControlLock variable. This module adds Variable Hook and check MemoryOverwriteRequestControlLock. -Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR> +Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR> 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 http://opensource.org/licenses/bsd-license.php @@ -457,18 +457,18 @@ MorLockInitAtEndOfDxe ( // does not produce it. Whether this is the case (from the last OS boot) // can be deduced from the absence of the TCG / TCG2 protocols, as edk2's // MOR implementation depends on (one of) those protocols. // TcgStatus = gBS->LocateProtocol ( - &gEfiTcgProtocolGuid, - NULL, // Registration + &gEfiTcg2ProtocolGuid, + NULL, // Registration &TcgInterface ); if (EFI_ERROR (TcgStatus)) { TcgStatus = gBS->LocateProtocol ( - &gEfiTcg2ProtocolGuid, - NULL, // Registration + &gEfiTcgProtocolGuid, + NULL, // Registration &TcgInterface ); } if (!EFI_ERROR (TcgStatus)) { -- 2.16.2.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel