From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 89FBFAC0A10 for ; Mon, 20 Nov 2023 04:55:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=HnQbKclrFaxaKO5cXFwgHFvl7LGADgJfDFJ0Be3pukc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1700456100; v=1; b=TbRcRFNxcHzM4665xGZMo7R8eDVd1IpgyAnLJYWxLAlvRh8gHZbGpkFouzkq5j+rnvqylegG vrRsHLo7mq3b28YMDMq59tl6AWayKd0Hj15LcHZVxJmGrr7EB3iw9GiZlcbKcFMJSgwGvBXOKVd RFGdLRpywUCEq/uCPYfuSdoM= X-Received: by 127.0.0.2 with SMTP id 4zaqYY7687511xT7L6ixdNuD; Sun, 19 Nov 2023 20:55:00 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web11.44351.1700456095278275149 for ; Sun, 19 Nov 2023 20:54:59 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10899"; a="395480364" X-IronPort-AV: E=Sophos;i="6.04,212,1695711600"; d="scan'208";a="395480364" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Nov 2023 20:54:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,212,1695711600"; d="scan'208";a="14040826" X-Received: from shwdeopenlab813.ccr.corp.intel.com ([10.239.55.230]) by orviesa001.jf.intel.com with ESMTP; 19 Nov 2023 20:54:57 -0800 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: xieyuanh , Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V6 2/2] UefiCpuPkg/MpInitLib: Update the comments of _CPU_MP_DATA. Date: Mon, 20 Nov 2023 12:54:52 +0800 Message-Id: <20231120045452.2324-3-yuanhao.xie@intel.com> In-Reply-To: <20231120045452.2324-1-yuanhao.xie@intel.com> References: <20231120045452.2324-1-yuanhao.xie@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,yuanhao.xie@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: vZuM7GtlG65pvx4dVhgKNxIMx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=TbRcRFNx; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io No functional changes in this patch. Updated the comments of _CPU_MP_DATA to delcared that duplications in CpuMpData are present to avoid to be direct accessed and comprehended in assembly code. CpuMpData: Intended for use in C code while ExchangeInfo are used in assembly code in this module. Signed-off-by: Yuanhao Xie Cc: Laszlo Ersek lersek@redhat.com Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/Library/MpInitLib/MpLib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index af296f6ac0..924677d823 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -239,7 +239,11 @@ typedef struct { #pragma pack() // -// CPU MP Data save in memory +// CPU MP Data save in memory, and intended for use in C code. +// There are some duplicated fields, such as XD status, between +// CpuMpData and ExchangeInfo. These duplications in CpuMpData +// are present to avoid to be direct accessed and comprehended +// in assembly code. // struct _CPU_MP_DATA { UINT64 CpuInfoInHob; -- 2.39.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#111455): https://edk2.groups.io/g/devel/message/111455 Mute This Topic: https://groups.io/mt/102702385/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-