From 43fe5cdc706dcd2d36c47fdf4a2c9e7ae51fd086 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 25 Nov 2008 00:45:35 +0000 Subject: [PATCH] Fix ICC warnings git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6714 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/PeiPciLibPciCfg2/PciLib.c | 8 ++++++-- MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c | 10 ++++++---- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/MdePkg/Library/PeiPciLibPciCfg2/PciLib.c b/MdePkg/Library/PeiPciLibPciCfg2/PciLib.c index 080195f693..71b149639f 100644 --- a/MdePkg/Library/PeiPciLibPciCfg2/PciLib.c +++ b/MdePkg/Library/PeiPciLibPciCfg2/PciLib.c @@ -67,16 +67,18 @@ PeiPciLibPciCfg2ReadWorker ( EFI_STATUS Status; UINT32 Data; CONST EFI_PEI_PCI_CFG2_PPI *PciCfg2Ppi; + UINT64 PciCfg2Address; Status = PeiServicesLocatePpi (&gEfiPciCfg2PpiGuid, 0, NULL, (VOID **) &PciCfg2Ppi); ASSERT_EFI_ERROR (Status); ASSERT (PciCfg2Ppi != NULL); + PciCfg2Address = PCI_TO_PCICFG2_ADDRESS (Address); PciCfg2Ppi->Read ( GetPeiServicesTablePointer (), PciCfg2Ppi, Width, - PCI_TO_PCICFG2_ADDRESS (Address), + PciCfg2Address, &Data ); @@ -108,16 +110,18 @@ PeiPciLibPciCfg2WriteWorker ( { EFI_STATUS Status; CONST EFI_PEI_PCI_CFG2_PPI *PciCfg2Ppi; + UINT64 PciCfg2Address; Status = PeiServicesLocatePpi (&gEfiPciCfg2PpiGuid, 0, NULL, (VOID **) &PciCfg2Ppi); ASSERT_EFI_ERROR (Status); ASSERT (PciCfg2Ppi != NULL); + PciCfg2Address = PCI_TO_PCICFG2_ADDRESS (Address); PciCfg2Ppi->Write ( GetPeiServicesTablePointer (), PciCfg2Ppi, Width, - PCI_TO_PCICFG2_ADDRESS (Address), + PciCfg2Address, &Data ); diff --git a/MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c b/MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c index 453f2ded0f..729391d9c9 100644 --- a/MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c +++ b/MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c @@ -107,14 +107,15 @@ PeiPciSegmentLibPciCfg2ReadWorker ( { UINT32 Data; CONST EFI_PEI_PCI_CFG2_PPI *PciCfg2Ppi; + UINT64 PciCfg2Address; PciCfg2Ppi = InternalGetPciCfg2Ppi (Address); - + PciCfg2Address = PCI_TO_PCICFG2_ADDRESS (Address); PciCfg2Ppi->Read ( GetPeiServicesTablePointer (), PciCfg2Ppi, Width, - PCI_TO_PCICFG2_ADDRESS (Address), + PciCfg2Address, &Data ); @@ -145,14 +146,15 @@ PeiPciSegmentLibPciCfg2WriteWorker ( ) { CONST EFI_PEI_PCI_CFG2_PPI *PciCfg2Ppi; + UINT64 PciCfg2Address; PciCfg2Ppi = InternalGetPciCfg2Ppi (Address); - + PciCfg2Address = PCI_TO_PCICFG2_ADDRESS (Address); PciCfg2Ppi->Write ( GetPeiServicesTablePointer (), PciCfg2Ppi, Width, - PCI_TO_PCICFG2_ADDRESS (Address), + PciCfg2Address, &Data ); -- 2.39.2