mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
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 <qin.long@intel.com> Cc: Yao, Jiewen <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhang, Chao B <chao.b.zhang@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com>
This commit is contained in:
parent
831bb137a8
commit
5da2c9b27a
@ -4,7 +4,7 @@
|
|||||||
This module initilizes MemoryOverwriteRequestControlLock variable.
|
This module initilizes MemoryOverwriteRequestControlLock variable.
|
||||||
This module adds Variable Hook and check MemoryOverwriteRequestControlLock.
|
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
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
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.
|
// MOR implementation depends on (one of) those protocols.
|
||||||
//
|
//
|
||||||
TcgStatus = gBS->LocateProtocol (
|
TcgStatus = gBS->LocateProtocol (
|
||||||
&gEfiTcgProtocolGuid,
|
&gEfiTcg2ProtocolGuid,
|
||||||
NULL, // Registration
|
NULL, // Registration
|
||||||
&TcgInterface
|
&TcgInterface
|
||||||
);
|
);
|
||||||
if (EFI_ERROR (TcgStatus)) {
|
if (EFI_ERROR (TcgStatus)) {
|
||||||
TcgStatus = gBS->LocateProtocol (
|
TcgStatus = gBS->LocateProtocol (
|
||||||
&gEfiTcg2ProtocolGuid,
|
&gEfiTcgProtocolGuid,
|
||||||
NULL, // Registration
|
NULL, // Registration
|
||||||
&TcgInterface
|
&TcgInterface
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user