public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Guo, Mang" <mang.guo@intel.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 4Initialize some pointers
Date: Thu, 23 Aug 2018 05:32:54 +0000	[thread overview]
Message-ID: <22D2C85ED001C54AA20BFE3B0E4751D1526D3973@SHSMSX103.ccr.corp.intel.com> (raw)

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



                 reply	other threads:[~2018-08-23  5:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22D2C85ED001C54AA20BFE3B0E4751D1526D3973@SHSMSX103.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox