From nobody Sat Dec 28 11:44:29 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1494749063669228.0845208252981; Sun, 14 May 2017 01:04:23 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 2CBAA21A134B9; Sun, 14 May 2017 01:04:21 -0700 (PDT) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 AC48E21A134A6 for ; Sun, 14 May 2017 01:04:19 -0700 (PDT) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP; 14 May 2017 01:04:19 -0700 Received: from zwei4-mobl.ccr.corp.intel.com ([10.255.26.51]) by orsmga003.jf.intel.com with ESMTP; 14 May 2017 01:04:18 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,339,1491289200"; d="scan'208";a="968189963" From: zwei4 To: edk2-devel@lists.01.org Date: Sun, 14 May 2017 16:04:13 +0800 Message-Id: <20170514080413.11804-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Fix GCC build errors. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- .../Common/PlatformSettings/PlatformPreMemPei/PlatformInitPreMem.c | 5 += ++++ Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc | 1 - .../SouthCluster/ScSmiDispatcher/Smm/ScSmiDispatcher.inf | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPr= eMemPei/PlatformInitPreMem.c b/Platform/BroxtonPlatformPkg/Common/PlatformS= ettings/PlatformPreMemPei/PlatformInitPreMem.c index d7ef4970b..fe454bf89 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei= /PlatformInitPreMem.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSettings/PlatformPreMemPei= /PlatformInitPreMem.c @@ -217,6 +217,10 @@ CopyMemSse4 ( IN UINTN SizeInBytes ) { + + #ifdef __GNUC__ + CopyMem (Dst, Src, SizeInBytes);=20 + #else _asm { // // Initialize pointers to start of the USWC memory @@ -281,6 +285,7 @@ CopyMemSse4 ( movdqu xmm3, [esp + 48] add esp, 040h // stack cleanup } + #endif // End of Bulk Load loop } =20 diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc= .dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc index 7c7f9c2b1..1d5786d59 100644 --- a/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc @@ -104,5 +104,4 @@ DEFINE EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS =3D $(EDK_ED= KII_DSC_FEATURE_BUILD_OPTIO *_*_X64_ASLPP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) *_*_*_ASL_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) -we =20 - RELEASE_*_*_CC_FLAGS =3D /Zi =20 diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/ScSmiDispatcher/S= mm/ScSmiDispatcher.inf b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/ScSmi= Dispatcher/Smm/ScSmiDispatcher.inf index 9ba40ca08..09b36eb33 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/ScSmiDispatcher/Smm/ScSm= iDispatcher.inf +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/SouthCluster/ScSmiDispatcher/Smm/ScSm= iDispatcher.inf @@ -82,4 +82,4 @@ gEfiPciRootBridgeIoProtocolGuid =20 [BuildOptions] - *_*_X64_CC_FLAGS =3D -D X64_BUILD_SUPPORT =3D 1 + *_*_X64_CC_FLAGS =3D -D X64_BUILD_SUPPORT=3D1 --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel