summaryrefslogtreecommitdiff
path: root/DuetPkg/PciBusNoEnumerationDxe
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 09:11:41 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-27 09:11:41 +0000
commit2b7d16cf8c416b011d9e133cca7e59823ac2f4ad (patch)
tree50ebda63e39c3caee3b53718a54e556a6e5a082a /DuetPkg/PciBusNoEnumerationDxe
parent88b6bcec9df37bff0ef2a7ef62b28cf80c39b219 (diff)
downloadedk2-2b7d16cf8c416b011d9e133cca7e59823ac2f4ad.zip
edk2-2b7d16cf8c416b011d9e133cca7e59823ac2f4ad.tar.gz
edk2-2b7d16cf8c416b011d9e133cca7e59823ac2f4ad.tar.bz2
Pass ICC building.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6761 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/PciBusNoEnumerationDxe')
-rw-r--r--DuetPkg/PciBusNoEnumerationDxe/PciCommand.c8
-rw-r--r--DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c2
2 files changed, 4 insertions, 6 deletions
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
index 61393ed..6d524c1 100644
--- a/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
+++ b/DuetPkg/PciBusNoEnumerationDxe/PciCommand.c
@@ -121,7 +121,7 @@ Returns:
&OldCommand
);
- OldCommand |= Command;
+ OldCommand = (UINT16) (OldCommand | Command);
return PciIo->Pci.Write (
PciIo,
@@ -165,7 +165,7 @@ Returns:
&OldCommand
);
- OldCommand &= ~(Command);
+ OldCommand = (UINT16) (OldCommand & ~(Command));
return PciIo->Pci.Write (
PciIo,
@@ -244,7 +244,7 @@ Returns:
&OldCommand
);
- OldCommand |= Command;
+ OldCommand = (UINT16) (OldCommand | Command);
return PciIo->Pci.Write (
PciIo,
@@ -287,7 +287,7 @@ Returns:
&OldCommand
);
- OldCommand &= ~(Command);
+ OldCommand = (UINT16) (OldCommand & ~(Command));
return PciIo->Pci.Write (
PciIo,
diff --git a/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c b/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c
index a863475..064b634 100644
--- a/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c
+++ b/DuetPkg/PciBusNoEnumerationDxe/PciOptionRomSupport.c
@@ -148,7 +148,6 @@ Returns:
UINT16 OffsetPcir;
UINT32 RomBarOffset;
UINT32 RomBar;
- UINT64 Temp;
EFI_STATUS retStatus;
BOOLEAN FirstCheck;
UINT8 *Image;
@@ -164,7 +163,6 @@ Returns:
Indicator = 0;
RomImageSize = 0;
RomInMemory = NULL;
- Temp = 0;
CodeType = 0xFF;
//