From nobody Mon Feb 9 05:21:18 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+107578+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107578+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1691172489; cv=none; d=zohomail.com; s=zohoarc; b=YTkh0PbIxchCn2sNyKwsCSuFZXYCrvm/xZQ5W1YKO6vrzh5xVIbfUxGH/DmFnWzTa2kf3uGe+xy7Qa5Z94yXYbkZweh1fQ4lKRIOpbteGtvIzWxKDXSJAShpmveP6Vq1VNVkY/uGuxTkKF4ZWS9S8dP63Y4V8v4gdK4Og/akimQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1691172489; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=A6rGMnMhI37UvusiQDnTuwrdV0NPI8KT3m1FyOcRxx0=; b=NInG0lDPN8BI9RIRN/3/EwDxyRQWMBJxpQSdi4w/lgBt3ya2d3PfR0kP8cr59XNDazgW1mzIAcLdkHwLlPYTi/7PGpMu4uJrhccYjgzmIXHja4M/N2VEwR38X19pzoqdxbpVJs12AWXwZO+Edh5Go7T2nHV4Ehy0j7CcHJk8/6k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+107578+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 169117248920797.63721952884703; Fri, 4 Aug 2023 11:08:09 -0700 (PDT) Return-Path: DKIM-Signature: a=rsa-sha256; bh=Qt6K/2Ddj70LwmI+kUpmTbMkP5lKbdTdS83OAMSGX5A=; 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=1691172488; v=1; b=tIQEWz3DdCLlMvcMpZAn6Ni1VAZb+s+YfMqeRTJdOfSFhnmS5egOGGvN2eIyiecdZuNtHr24 gftHI3jiutxXHlSsr/gfq3Yp5ueLfVTj/5c8xqa4MnwavtrDi3JgU8gX4KS57bTud+fTNYPMjGc uC0rgyTOfwoKJYC70n+FiNQ0= X-Received: by 127.0.0.2 with SMTP id XsCnYY1788612xQWqYFPbEtl; Fri, 04 Aug 2023 11:08:08 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.19616.1691080995906494801 for ; Thu, 03 Aug 2023 09:43:20 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="373576866" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="373576866" X-Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 09:43:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10791"; a="976161644" X-IronPort-AV: E=Sophos;i="6.01,252,1684825200"; d="scan'208";a="976161644" X-Received: from vishalr1-mobl2.gar.corp.intel.com ([10.67.144.155]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2023 09:43:14 -0700 From: "Vishal R" To: devel@edk2.groups.io Cc: Vishal R , Rebecca Cran , Michael D Kinney , Jayaprakash N Subject: [edk2-devel] [edk2-libc Patch 1/1] edk2-libc/AppPkg: Fix documentation issue with edk2module.c Date: Thu, 3 Aug 2023 22:12:23 +0530 Message-Id: <20230803164223.1584-2-vishal.r@intel.com> In-Reply-To: <20230803164223.1584-1-vishal.r@intel.com> References: <20230803164223.1584-1-vishal.r@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,vishal.r@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: EOn3F7f279SOkN5i5cGghyV2x1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1691172491322100011 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4517 This commit fixes the API documentation issue reported via the BZ4517 Updated documentation strings for rdmsr() and wrmsr() Cc: Rebecca Cran Cc: Michael D Kinney Cc: Jayaprakash N Signed-off-by: Vishal R Reviewed-by: Jayaprakash Nevara --- .../PyMod-3.6.8/Modules/edk2module.c | 28 +++++++++++++++---- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Modules/ed= k2module.c b/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Modules/ed= k2module.c index 9641f86..05b1a5a 100644 --- a/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Modules/edk2modul= e.c +++ b/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Modules/edk2modul= e.c @@ -3839,8 +3839,16 @@ void WritePCICfg( } =20 PyDoc_STRVAR(efi_rdmsr__doc__, -"rdmsr(ecx) -> (eax,edx)\n\ -Read the given MSR."); +"rdmsr(msr) -> (lower_32bits, higher_32bits)\n\ +\n\ +Read the given msr and return the data as tuple.\n\ +\n\ +Parameters:\n\ + msr - The msr in hex or int format\n\ +\n\ +Return Value:\n\ + a tuple with lower and higher 32 bit values read from the msr\n\ +"); =20 static PyObject * edk2_rdmsr(PyObject *self, PyObject *args) @@ -3857,9 +3865,19 @@ edk2_rdmsr(PyObject *self, PyObject *args) return Py_BuildValue("(II)", (unsigned long)veax, (unsigned long)vedx); } =20 -PyDoc_STRVAR(efi_wrmsr__doc__, -"wrmsr(ecx, eax, edx) -> None\n\ -Write edx:eax to the given MSR."); +PyDoc_STRVAR(efi_wrmsr__doc__, +"wrmsr(msr, lower_32bits, higher_32bits) -> None\n\ +\n\ +Writes higher_32bits:lower_32bits to the given msr.\n\ +\n\ +Parameters:\n\ + msr - The msr in hex or int format\n\ + lower_32bits - The lower 32 bit data for the msr\n\ + higher_32bits - The higher 32 bit data for the msr\n\ +\n\ +Return Value:\n\ + None\n\ +"); =20 static PyObject * edk2_wrmsr(PyObject *self, PyObject *args) --=20 2.39.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 (#107578): https://edk2.groups.io/g/devel/message/107578 Mute This Topic: https://groups.io/mt/100551578/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-