From nobody Sat Feb 7 06:40:06 2026 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+52571+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+52571+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1577322510; cv=none; d=zohomail.com; s=zohoarc; b=mpv9onGa67t4MSSaODN9/9ttfqp8OqevVLVdu8yvIbGRBlS2GCW5x8dHJdIyfZS0RqbM6tWxkmklaBwEHEj3/hYM84njBZ7nA07nGOESk9piTB6dgjvZPBHBrd9elMcSGV0MKCHLnb6UWwlaoraAyjFnlce04h7vUuLio7i39QU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1577322510; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=M8BVsRI51y7snWX20WH5R82wq5xSU4HB/y+ua5iQjYg=; b=ECTenY2OMI6NUKOZScLVklei3+ZrpHZs+eoGJfxXzKDdVH2+58zV8BZBkDtDJan8U6FFuqJ3X7k2TS4s1M0u8u/CGj3zi2mzqT4WAoIfAWPvJ++B6mO5AyWJU7EOsCGKbrGZu2jBomJJ488Qb6xhRTGY+sgMsC1xTt57InO6z8Q= 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+52571+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 1577322510173958.006027491571; Wed, 25 Dec 2019 17:08:30 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id gY2MYY1788612xaKtehTiqIl; Wed, 25 Dec 2019 17:08:29 -0800 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web12.17170.1577322501304265708 for ; Wed, 25 Dec 2019 17:08:28 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Dec 2019 17:08:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,357,1571727600"; d="scan'208";a="367661901" X-Received: from shwdeopenpsi014.ccr.corp.intel.com ([10.239.9.8]) by orsmga004.jf.intel.com with ESMTP; 25 Dec 2019 17:08:27 -0800 From: "Wu, Hao A" To: devel@edk2.groups.io Cc: Hao A Wu , Eric Dong , Ray Ni , Laszlo Ersek , Star Zeng , Siyuan Fu , Michael D Kinney Subject: [edk2-devel] [PATCH v3 5/6] UefiCpuPkg/MpInitLib: Relocate microcode patch fields in CPU_MP_DATA Date: Thu, 26 Dec 2019 09:08:16 +0800 Message-Id: <20191226010817.6920-6-hao.a.wu@intel.com> In-Reply-To: <20191226010817.6920-1-hao.a.wu@intel.com> References: <20191226010817.6920-1-hao.a.wu@intel.com> 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,hao.a.wu@intel.com X-Gm-Message-State: ecAexJzpMoxSOIkZnGTHxuZex1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1577322509; bh=OdVO6y7+nsOqx/A0CzpeAKvyLhpO1Un8AyiowGHkwXQ=; h=Cc:Date:From:Reply-To:Subject:To; b=QK0s/BlDkaMNo5a/CAhQmnMsfYgfs2CmyijqcI5SlD25fU5NpvRYdSfqLGdNLKSSS0Y SxqSACQQv+1RCE/xl9h8FuiDZIhAaOufiTMoPhwxXs3BR8eI8kQrgro0BA36knIq1Bc3U J831QcLMosfKF+kMm8TtXcb099GtWlXhupo= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The below 2 microcode patch related fields in structure CPU_MP_DATA: UINT64 MicrocodePatchAddress; UINT64 MicrocodePatchRegionSize; They will be passed from PEI phase and be reused DXE phase. Previously, these 2 fields were placed after some fields with type 'UINTN', this will lead to different field offset in different architecture for them. This commit will move them before the fields with different size in different architecture to ensure they can be properly used in DXE phase. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Cc: Star Zeng Cc: Siyuan Fu Cc: Michael D Kinney Signed-off-by: Hao A Wu Reviewed-by: Ray Ni --- UefiCpuPkg/Library/MpInitLib/MpLib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpIn= itLib/MpLib.h index 885656900c..5f50e79744 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -217,6 +217,8 @@ struct _CPU_MP_DATA { UINT64 CpuInfoInHob; UINT32 CpuCount; UINT32 BspNumber; + UINT64 MicrocodePatchAddress; + UINT64 MicrocodePatchRegionSize; // // The above fields data will be passed from PEI to DXE // Please make sure the fields offset same in the different @@ -260,8 +262,6 @@ struct _CPU_MP_DATA { UINT8 Vector; BOOLEAN PeriodicMode; BOOLEAN TimerInterruptState; - UINT64 MicrocodePatchAddress; - UINT64 MicrocodePatchRegionSize; =20 UINT32 ProcessorSignature; UINT32 ProcessorFlags; --=20 2.12.0.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 (#52571): https://edk2.groups.io/g/devel/message/52571 Mute This Topic: https://groups.io/mt/69267118/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-