From nobody Tue Apr 30 05:50:39 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.zohomail.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 1504623037047408.1139283861205; Tue, 5 Sep 2017 07:50:37 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 89D4221EB529A; Tue, 5 Sep 2017 07:47:45 -0700 (PDT) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 B3C9921EA35C8 for ; Tue, 5 Sep 2017 07:47:44 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 05 Sep 2017 07:50:33 -0700 Received: from ray-dev.ccr.corp.intel.com ([10.239.9.7]) by fmsmga004.fm.intel.com with ESMTP; 05 Sep 2017 07:50:32 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,480,1498546800"; d="scan'208";a="308147549" From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Tue, 5 Sep 2017 22:50:29 +0800 Message-Id: <20170905145029.292860-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.12.2.windows.2 Subject: [edk2] [PATCH] MdePkg/PciSegmentLibSegmentInfo: fix typo in PciSegmentBitFieldAnd*() 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: , Cc: Ard Biesheuvel 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: Ruiyu Ni Cc: Ard Biesheuvel Reviewed-by: Ard Biesheuvel --- MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c = b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c index 7b7324d673..e0bdb16911 100644 --- a/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c +++ b/MdePkg/Library/PciSegmentLibSegmentInfo/PciSegmentLibCommon.c @@ -381,7 +381,7 @@ PciSegmentBitFieldAnd8 ( PCI_SEGMENT_INFO *SegmentInfo; =20 SegmentInfo =3D GetPciSegmentInfo (&Count); - return MmioBitFieldOr8 (PciSegmentLibGetEcamAddress (Address, SegmentInf= o, Count), StartBit, EndBit, AndData); + return MmioBitFieldAnd8 (PciSegmentLibGetEcamAddress (Address, SegmentIn= fo, Count), StartBit, EndBit, AndData); } =20 /** @@ -752,7 +752,7 @@ PciSegmentBitFieldAnd16 ( PCI_SEGMENT_INFO *SegmentInfo; =20 SegmentInfo =3D GetPciSegmentInfo (&Count); - return MmioBitFieldOr16 (PciSegmentLibGetEcamAddress (Address, SegmentIn= fo, Count), StartBit, EndBit, AndData); + return MmioBitFieldAnd16 (PciSegmentLibGetEcamAddress (Address, SegmentI= nfo, Count), StartBit, EndBit, AndData); } =20 /** @@ -1119,7 +1119,7 @@ PciSegmentBitFieldAnd32 ( PCI_SEGMENT_INFO *SegmentInfo; =20 SegmentInfo =3D GetPciSegmentInfo (&Count); - return MmioBitFieldOr32 (PciSegmentLibGetEcamAddress (Address, SegmentIn= fo, Count), StartBit, EndBit, AndData); + return MmioBitFieldAnd32 (PciSegmentLibGetEcamAddress (Address, SegmentI= nfo, Count), StartBit, EndBit, AndData); } =20 /** --=20 2.12.2.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel