Update code to pass build on VS2008 with /Od compiler option.

Signed-off-by: lgao4
Reviewed-by: rsun3
Reviewed-by: ftian


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12792 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2011-11-28 06:19:36 +00:00
parent a661e27f7a
commit e0e7f80cc3
5 changed files with 15 additions and 12 deletions

View File

@@ -503,12 +503,12 @@ AhciBuildCommand (
IN UINT8 AtapiCommandLength,
IN UINT8 CommandSlotNumber,
IN OUT VOID *DataPhysicalAddr,
IN UINT64 DataLength
IN UINT32 DataLength
)
{
UINT64 BaseAddr;
UINT64 PrdtNumber;
UINT64 PrdtIndex;
UINT32 PrdtNumber;
UINT32 PrdtIndex;
UINTN RemainedData;
UINTN MemAddr;
DATA_64 Data64;
@@ -557,7 +557,7 @@ AhciBuildCommand (
RemainedData = (UINTN) DataLength;
MemAddr = (UINTN) DataPhysicalAddr;
CommandList->AhciCmdPrdtl = (UINT32)PrdtNumber;
CommandList->AhciCmdPrdtl = PrdtNumber;
for (PrdtIndex = 0; PrdtIndex < PrdtNumber; PrdtIndex++) {
if (RemainedData < EFI_AHCI_MAX_DATA_PER_PRDT) {