From 5da2c9b27a2a0271c933d030b8757563dd53c391 Mon Sep 17 00:00:00 2001 From: "Zhang, Chao B" Date: Sat, 21 Jul 2018 11:19:07 +0800 Subject: [PATCH] MdeModulePkg: Variable: Re-prioritize TCG/TCG2 protocol TPM1.2 is obsoleted by TPM2.0. switch TCG/TCG2 protocol check to apply this trend Cc: Long, Qin Cc: Yao, Jiewen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhang, Chao B Reviewed-by: Yao, Jiewen --- .../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 @@ -4,7 +4,7 @@ This module initilizes MemoryOverwriteRequestControlLock variable. This module adds Variable Hook and check MemoryOverwriteRequestControlLock. -Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
+Copyright (c) 2016 - 2018, 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 @@ -459,14 +459,14 @@ MorLockInitAtEndOfDxe ( // 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 ); } -- 2.39.2