summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-14 01:33:04 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-10-14 01:33:04 +0000
commit5dec0c688ea92257e721eecdaf4fe4bcb15274dc (patch)
treed6a2c7a37c72e01de86bb45b771d8b18f881a07e
parent75f18f34356b29134a2bd9dbf8cc4889acfc44be (diff)
downloadedk2-platforms-5dec0c688ea92257e721eecdaf4fe4bcb15274dc.tar.xz
fix 32bit build warning
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10935 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c26
-rw-r--r--MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c2
2 files changed, 14 insertions, 14 deletions
diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
index bc673973d7..06b280a001 100644
--- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
+++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AhciMode.c
@@ -425,7 +425,7 @@ AhciBuildCommand (
AhciAndReg (PciIo, Offset, (UINT32)~(EFI_AHCI_PORT_CMD_DLAE | EFI_AHCI_PORT_CMD_ATAPI));
}
- RemainedData = DataLength;
+ RemainedData = (UINTN) DataLength;
MemAddr = (UINTN) DataPhysicalAddr;
CommandList->AhciCmdPrdtl = (UINT32)PrdtNumber;
@@ -1569,7 +1569,7 @@ AhciCreateTransferDescriptor (
PciIo,
AllocateAnyPages,
EfiBootServicesData,
- EFI_SIZE_TO_PAGES (MaxReceiveFisSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxReceiveFisSize),
&Buffer,
0
);
@@ -1578,11 +1578,11 @@ AhciCreateTransferDescriptor (
return EFI_OUT_OF_RESOURCES;
}
- ZeroMem (Buffer, MaxReceiveFisSize);
+ ZeroMem (Buffer, (UINTN)MaxReceiveFisSize);
AhciRegisters->AhciRFis = Buffer;
AhciRegisters->MaxReceiveFisSize = MaxReceiveFisSize;
- Bytes = MaxReceiveFisSize;
+ Bytes = (UINTN)MaxReceiveFisSize;
Status = PciIo->Map (
PciIo,
@@ -1619,7 +1619,7 @@ AhciCreateTransferDescriptor (
PciIo,
AllocateAnyPages,
EfiBootServicesData,
- EFI_SIZE_TO_PAGES (MaxCommandListSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxCommandListSize),
&Buffer,
0
);
@@ -1632,11 +1632,11 @@ AhciCreateTransferDescriptor (
goto Error5;
}
- ZeroMem (Buffer, MaxCommandListSize);
+ ZeroMem (Buffer, (UINTN)MaxCommandListSize);
AhciRegisters->AhciCmdList = Buffer;
AhciRegisters->MaxCommandListSize = MaxCommandListSize;
- Bytes = MaxCommandListSize;
+ Bytes = (UINTN)MaxCommandListSize;
Status = PciIo->Map (
PciIo,
@@ -1674,7 +1674,7 @@ AhciCreateTransferDescriptor (
PciIo,
AllocateAnyPages,
EfiBootServicesData,
- EFI_SIZE_TO_PAGES (MaxCommandTableSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxCommandTableSize),
&Buffer,
0
);
@@ -1687,11 +1687,11 @@ AhciCreateTransferDescriptor (
goto Error3;
}
- ZeroMem (Buffer, MaxCommandTableSize);
+ ZeroMem (Buffer, (UINTN)MaxCommandTableSize);
AhciRegisters->AhciCommandTable = Buffer;
AhciRegisters->MaxCommandTableSize = MaxCommandTableSize;
- Bytes = MaxCommandTableSize;
+ Bytes = (UINTN)MaxCommandTableSize;
Status = PciIo->Map (
PciIo,
@@ -1730,7 +1730,7 @@ Error1:
Error2:
PciIo->FreeBuffer (
PciIo,
- EFI_SIZE_TO_PAGES (MaxCommandTableSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxCommandTableSize),
AhciRegisters->AhciCommandTable
);
Error3:
@@ -1741,7 +1741,7 @@ Error3:
Error4:
PciIo->FreeBuffer (
PciIo,
- EFI_SIZE_TO_PAGES (MaxCommandListSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxCommandListSize),
AhciRegisters->AhciCmdList
);
Error5:
@@ -1752,7 +1752,7 @@ Error5:
Error6:
PciIo->FreeBuffer (
PciIo,
- EFI_SIZE_TO_PAGES (MaxReceiveFisSize),
+ (UINTN)EFI_SIZE_TO_PAGES (MaxReceiveFisSize),
AhciRegisters->AhciRFis
);
diff --git a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
index f5669d226b..bdbf3ab450 100644
--- a/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
+++ b/MdeModulePkg/Bus/Ata/AtaAtapiPassThru/IdeMode.c
@@ -1448,7 +1448,7 @@ AtaUdmaInOut (
PciIoOperation = EfiPciIoOperationBusMasterRead;
}
- ByteCount = DataLength;
+ ByteCount = (UINTN)DataLength;
Status = PciIo->Map (
PciIo,
PciIoOperation,