summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/PeiPciSegmentLibPciCfg2
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 00:45:35 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-25 00:45:35 +0000
commit43fe5cdc706dcd2d36c47fdf4a2c9e7ae51fd086 (patch)
tree7c639316b20e9fca0bb0fa90fa7cf14dca665f40 /MdePkg/Library/PeiPciSegmentLibPciCfg2
parente73bf9f394a1b7275e0703e2cc6ec15c5547d5a9 (diff)
downloadedk2-43fe5cdc706dcd2d36c47fdf4a2c9e7ae51fd086.tar.gz
edk2-43fe5cdc706dcd2d36c47fdf4a2c9e7ae51fd086.tar.bz2
edk2-43fe5cdc706dcd2d36c47fdf4a2c9e7ae51fd086.zip
Fix ICC warnings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6714 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/PeiPciSegmentLibPciCfg2')
-rw-r--r--MdePkg/Library/PeiPciSegmentLibPciCfg2/PciSegmentLib.c10
1 files changed, 6 insertions, 4 deletions
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
);