From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.151; helo=mga17.intel.com; envelope-from=mang.guo@intel.com; receiver=edk2-devel@lists.01.org Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 21AE4210FCF61 for ; Wed, 22 Aug 2018 22:33:00 -0700 (PDT) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 22:32:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,277,1531810800"; d="dat'59?scan'59,208,59";a="64538540" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga007.fm.intel.com with ESMTP; 22 Aug 2018 22:32:58 -0700 Received: from fmsmsx122.amr.corp.intel.com (10.18.125.37) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:32:57 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx122.amr.corp.intel.com (10.18.125.37) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 22:32:57 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.240]) by shsmsx102.ccr.corp.intel.com ([169.254.2.226]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 13:32:55 +0800 From: "Guo, Mang" To: "edk2-devel@lists.01.org" Thread-Topic: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 4Initialize some pointers Thread-Index: AdQ6or2dn4w8oDLiT+eL/k5nvlr8vw== Date: Thu, 23 Aug 2018 05:32:54 +0000 Message-ID: <22D2C85ED001C54AA20BFE3B0E4751D1526D3973@SHSMSX103.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: <22D2C85ED001C54AA20BFE3B0E4751D1526D3973@SHSMSX103.ccr.corp.intel.com> x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [Patch][edk2-platforms/devel-IntelAtomProcessorE3900 4Initialize some pointers X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 05:33:01 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Initialize some pointers which may be used without initialization Cc: David Wei Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Guo Mang Reviewed-by: David Wei --- .../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/PlatformBootManager= Lib/PlatformBootManager.c b/Platform/BroxtonPlatformPkg/Common/Library/Plat= formBootManagerLib/PlatformBootManager.c index c9c2cbf..5201ac0 100644 --- a/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManager.c +++ b/Platform/BroxtonPlatformPkg/Common/Library/PlatformBootManagerLib/Pla= tformBootManager.c @@ -524,7 +524,10 @@ ProcessTcgPp ( EFI_TCG2_PHYSICAL_PRESENCE Tcg2PpData; EFI_PHYSICAL_PRESENCE TcgPpData; UINTN TcgPpDataSize; - =20 + + TcgPpData.PPRequest =3D TCG_PHYSICAL_PRESENCE_NO_ACTION; + Tcg2PpData.PPRequest =3D TCG2_PHYSICAL_PRESENCE_NO_ACTION; + // // Initialize physical presence variable. // diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPo= stMemPei/PlatformInit.c b/Platform/BroxtonPlatformPkg/Common/PlatformSettin= gs/PlatformPostMemPei/PlatformInit.c index 7d003e4..17c09ec 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPe= i/PlatformInit.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPostMemPe= i/PlatformInit.c @@ -1,7 +1,7 @@ /** @file Do platform specific PEI stage initializations. =20 - Copyright (c) 2012 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
=20 This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License @@ -90,6 +90,7 @@ TpmPolicyInit ( =20 if ((IsPttEnabled) && (SystemConfiguration->TPM =3D=3D TPM_PTT)) { if (SystemConfiguration->PttSuppressCommandSend =3D=3D 1) { + Size =3D sizeof (gEfiTpmDeviceInstanceNoneGuid); PcdSetPtrS (PcdTpmInstanceGuid, &Size, &gEfiTpmDeviceInstanceNoneGui= d); DEBUG ((DEBUG_ERROR, "BIOS will send no further commands to PTT.\n")= ); } else { --=20 2.10.1.windows.1