From nobody Mon May 6 21:49:11 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+54964+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54964+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1582768713; cv=none; d=zohomail.com; s=zohoarc; b=kMoTEpTH/9V81F+FBpTP/sVZuYjNLeX8t6nkEVQkMgeT3Sqehd1KdWyQX+fL36ivNbTCa+V4ZaVOoFlXReAw9niUDO3fKlmf8YRobYhJy4z8bMDPKmnxmhwjnoDAJdk4S36Ln0rqgjgLtStT3YprfJtrftI5MtTNhoXs41tN/Z4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582768713; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=xroJttXdAZkfzC0of00nrjjo9FTl3glv+VLcEqfWYVw=; b=ZmBxNko8vB/9v36iAj0JyDJpd0jPp1GB+dPJMKDoqUxSMItnpObq+uZ0pZgSZNMECAfFmEgP59QUTs11W48iyaAs33QmI16ThRsOR+Z9fY46nyAycFP38T/8XhVXSEhClSNuzxcTDsAPEmrVa6oOge14C1MRnaPhVwDKlJcE0BM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54964+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1582768713326806.8912251877475; Wed, 26 Feb 2020 17:58:33 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id ivvRYY1788612xIYf7miG5wD; Wed, 26 Feb 2020 17:58:32 -0800 X-Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.7272.1582768711434299530 for ; Wed, 26 Feb 2020 17:58:31 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2020 17:58:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,490,1574150400"; d="scan'208";a="271980533" X-Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga002.fm.intel.com with ESMTP; 26 Feb 2020 17:58:29 -0800 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: Ray Ni , Rangasai V Chaganty , Liming Gao Subject: [edk2-devel] [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error. Date: Thu, 27 Feb 2020 09:58:26 +0800 Message-Id: <20200227015826.67948-1-siyuan.fu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,siyuan.fu@intel.com X-Gm-Message-State: YMYvY3nmlg4gzNp88Ud6k5xAx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1582768712; bh=VxB4jaVqbMWTAJKSNkXtBhuCIA732hZFZ3FXqS85Lls=; h=Cc:Date:From:Reply-To:Subject:To; b=h+Fx9T7EsTjHPjDsfW2rsgTctzxy4jFE6TGDHtoOQXYat6XTEZWiVT5Uln4h2AkE+X4 V4Hv7FrtLI5IuPE6muK1z6cQb1FrdpiDmGYAHaAO2fIRntMsWMyB1zySQTaa6rzLiEBBJ Fh88G9sxgIP3xnHLxnFzq7ls9dafOnYOrIg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" This patch fixes compiler error introduced by commit b0099a39bd. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=3D2449 Cc: Ray Ni Cc: Rangasai V Chaganty Cc: Liming Gao Signed-off-by: Siyuan Fu Reviewed-by: Liming Gao Reviewed-by: Ray Ni --- .../Feature/ShadowMicrocode/ShadowMicrocodePei.c | 2 +- .../Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMi= crocodePei.c b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/Shadow= MicrocodePei.c index 7e4084247e..8d6574f667 100644 --- a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocode= Pei.c +++ b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocode= Pei.c @@ -247,7 +247,7 @@ ShadowMicrocodePatchWorker ( (VOID *) Patches[Index].Address, Patches[Index].Size ); - MicrocodeAddressInMemory[Index] =3D (UINT64) Walker; + MicrocodeAddressInMemory[Index] =3D (UINT64) (UINTN) Walker; Flashcontext->MicrocodeAddressInFlash[Index] =3D (UINT64) Patches[Ind= ex].Address; Walker +=3D Patches[Index].Size; } diff --git a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfo= Hob.h b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h index d887b39123..1daae1234a 100644 --- a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h +++ b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h @@ -58,7 +58,7 @@ typedef struct { // microcode patch address on flash. The address is placed in same // order as the microcode patches in MicrocodeAddrInMemory. // - UINT64 MicrocodeAddressInFlash[]; + UINT64 MicrocodeAddressInFlash[0]; } EFI_MICROCODE_STORAGE_TYPE_FLASH_CONTEXT; =20 #endif --=20 2.19.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54964): https://edk2.groups.io/g/devel/message/54964 Mute This Topic: https://groups.io/mt/71579115/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-