public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 4Initialize some pointers
@ 2018-08-23  5:32 Guo, Mang
  0 siblings, 0 replies; only message in thread
From: Guo, Mang @ 2018-08-23  5:32 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

Initialize some pointers which may be used without initialization

Cc: David Wei <david.wei@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Guo Mang <mang.guo@intel.com>
Reviewed-by:  David Wei <david.wei@intel.com>
---
 .../Common/Library/PlatformBootManagerLib/PlatformBootManager.c      | 5 ++++-
 .../Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c        | 3 ++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
index c9c2cbf..5201ac0 100644
--- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
+++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/PlatformBootManager.c
@@ -524,7 +524,10 @@ ProcessTcgPp (
   EFI_TCG2_PHYSICAL_PRESENCE         Tcg2PpData;
   EFI_PHYSICAL_PRESENCE              TcgPpData;
   UINTN                              TcgPpDataSize;
-    
+
+  TcgPpData.PPRequest = TCG_PHYSICAL_PRESENCE_NO_ACTION;
+  Tcg2PpData.PPRequest = TCG2_PHYSICAL_PRESENCE_NO_ACTION;
+
   //
   // Initialize physical presence variable.
   //
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
index 7d003e4..17c09ec 100644
--- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
+++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPei/PlatformInit.c
@@ -1,7 +1,7 @@
 /** @file
   Do platform specific PEI stage initializations.
 
-  Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.<BR>
+  Copyright (c) 2012 - 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
@@ -90,6 +90,7 @@ TpmPolicyInit (
 
   if ((IsPttEnabled) && (SystemConfiguration->TPM == TPM_PTT)) {
     if (SystemConfiguration->PttSuppressCommandSend == 1) {
+      Size = sizeof (gEfiTpmDeviceInstanceNoneGuid);
       PcdSetPtrS (PcdTpmInstanceGuid, &Size, &gEfiTpmDeviceInstanceNoneGuid);
       DEBUG ((DEBUG_ERROR, "BIOS will send no further commands to PTT.\n"));
     } else {
-- 
2.10.1.windows.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-08-23  5:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-23  5:32 [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 4Initialize some pointers Guo, Mang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox