git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9600
6f19259b-4bc3-4df7-8a09-
765794883524
// if so, it is assumed non-stardard I/O window alignment is supported by this bridge.\r
// Per spec, bit 3-1 of I/O Base Register are reserved bits, so its content can't be assumed.\r
//\r
// if so, it is assumed non-stardard I/O window alignment is supported by this bridge.\r
// Per spec, bit 3-1 of I/O Base Register are reserved bits, so its content can't be assumed.\r
//\r
- Value = Temp ^ (BIT3 | BIT2 | BIT1);\r
+ Value = (UINT8)(Temp ^ (BIT3 | BIT2 | BIT1));\r
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Temp);\r
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
PciIo->Pci.Read (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Value);\r
PciIo->Pci.Write (PciIo, EfiPciIoWidthUint8, 0x1C, 1, &Temp);\r
- Value = (Value ^ Temp) & (BIT3 | BIT2 | BIT1);\r
+ Value = (UINT8)((Value ^ Temp) & (BIT3 | BIT2 | BIT1));\r
switch (Value) {\r
case BIT3:\r
PciIoDevice->BridgeIoAlignment = 0x7FF;\r
switch (Value) {\r
case BIT3:\r
PciIoDevice->BridgeIoAlignment = 0x7FF;\r