summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-25 01:56:24 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-12-25 01:56:24 +0000
commitf00b5d8352ad010dfdb3e7bec67bc6dc9490dd5f (patch)
tree2049caf3d096e63aa860861d66d00686aefc0166 /MdeModulePkg
parent6051620257f9eff7a9db17e1bd3b1b7336b3e440 (diff)
downloadedk2-f00b5d8352ad010dfdb3e7bec67bc6dc9490dd5f.zip
edk2-f00b5d8352ad010dfdb3e7bec67bc6dc9490dd5f.tar.gz
edk2-f00b5d8352ad010dfdb3e7bec67bc6dc9490dd5f.tar.bz2
Fix ICC toolchain build break.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9600 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
index 940d8d2..adf36a5 100644
--- a/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
+++ b/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumeratorSupport.c
@@ -481,11 +481,11 @@ GatherPpbInfo (
// if so, it is assumed non-stardard I/O window alignment is supported by this bridge.
// Per spec, bit 3-1 of I/O Base Register are reserved bits, so its content can't be assumed.
//
- Value = Temp ^ (BIT3 | BIT2 | BIT1);
+ Value = (UINT8)(Temp ^ (BIT3 | BIT2 | BIT1));
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);
PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Temp);
- Value = (Value ^ Temp) & (BIT3 | BIT2 | BIT1);
+ Value = (UINT8)((Value ^ Temp) & (BIT3 | BIT2 | BIT1));
switch (Value) {
case BIT3:
PciIoDevice->BridgeIoAlignment = 0x7FF;