From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 671EF2095DB87 for ; Thu, 3 Aug 2017 08:02:43 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2017 08:04:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,316,1498546800"; d="scan'208";a="1158712744" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga001.jf.intel.com with ESMTP; 03 Aug 2017 08:04:41 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 3 Aug 2017 08:04:39 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.146]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.122]) with mapi id 14.03.0319.002; Thu, 3 Aug 2017 23:04:38 +0800 From: "Gao, Liming" To: "Yao, Jiewen" , "Song, BinX" , "edk2-devel@lists.01.org" Thread-Topic: [PATCH] IntelFsp2Pkg: Delete useless external TempRamInitApi API Thread-Index: AdMMG/VCDGqeDKeqTI69ZqXwtAZABgAPMRzQAAQP0tA= Date: Thu, 3 Aug 2017 15:04:37 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D75F4AB@shsmsx102.ccr.corp.intel.com> References: <559D2DF22BC9A3468B4FA1AA547F0EF102583089@shsmsx102.ccr.corp.intel.com> <74D8A39837DF1E4DA445A8C0B3885C503A98296A@shsmsx102.ccr.corp.intel.com> In-Reply-To: <74D8A39837DF1E4DA445A8C0B3885C503A98296A@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] IntelFsp2Pkg: Delete useless external TempRamInitApi API X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Aug 2017 15:02:43 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Jiewen: The change is in SecFspSecPlatformLibNull. This library instance provides= the dummy function. It should not be used by any real FSP. We meet with th= e build issue with /WHOLEARCHIVE option. Because this library depends on th= e external TempRamInitApi(), but FspSecCoreS and FspSecCoreT don't provide = TempRamInitApi(). Then, FspSecCoreS and FspSecCoreT will build failure. To = fix this build failure, we choose to remove this unnecessary dependency.=20 > > global ASM_PFX(ProtectedModeEntryPoint) > > ASM_PFX(ProtectedModeEntryPoint): > > - ; > > - ; Dummy function. Consume 2 API to make sure they can be linked. > > - ;=09 Thanks Liming > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ya= o, Jiewen > Sent: Thursday, August 3, 2017 9:03 PM > To: Song, BinX ; edk2-devel@lists.01.org > Cc: Giri P Mudusuru > Subject: Re: [edk2] [PATCH] IntelFsp2Pkg: Delete useless external TempRam= InitApi API >=20 > Hi > May I know what test you have done to remove this? >=20 > Have you built a real FSP and boot it with FSP Wrapper? >=20 > Thank you > Yao Jiewen >=20 > > -----Original Message----- > > From: Song, BinX > > Sent: Thursday, August 3, 2017 1:47 PM > > To: edk2-devel@lists.01.org > > Cc: Yao, Jiewen ; Giri P Mudusuru > > > > Subject: [PATCH] IntelFsp2Pkg: Delete useless external TempRamInitApi A= PI > > > > - Delete useless external TempRamInitApi API to fix /WHOLEARCHIVE build > > error with VS2015 tool chain > > > > Cc: Jiewen Yao > > Cc: Giri P Mudusuru > > Contributed-under: TianoCore Contribution Agreement 1.0 > > Signed-off-by: Bell Song > > --- > > IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/Flat32.nasm | 7 ---= ---- > > 1 file changed, 7 deletions(-) > > > > diff --git a/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/Flat32.= nasm > > b/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/Flat32.nasm > > index 122eb9e..ee78312 100644 > > --- a/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/Flat32.nasm > > +++ b/IntelFsp2Pkg/Library/SecFspSecPlatformLibNull/Ia32/Flat32.nasm > > @@ -16,8 +16,6 @@ > > ; Define assembler characteristics > > ; > > > > -extern ASM_PFX(TempRamInitApi) > > - > > SECTION .text > > > > %macro RET_ESI 0 > > @@ -66,11 +64,6 @@ ASM_PFX(SecPlatformInit): > > ;---------------------------------------------------------------------= ------- > > global ASM_PFX(ProtectedModeEntryPoint) > > ASM_PFX(ProtectedModeEntryPoint): > > - ; > > - ; Dummy function. Consume 2 API to make sure they can be linked. > > - ;=09 > > - mov eax, ASM_PFX(TempRamInitApi) > > - > > ; Should never return > > jmp $ > > > > -- > > 2.10.2.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel