fix ia32 build error.

With IA32 tool chain, we can not use a 64bit data to divide a 32 bit data. MS tool chain may introduce an intrinsic function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10267 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
erictian 2010-03-17 11:06:21 +00:00
parent c0d69d10f6
commit c61f936286
1 changed files with 2 additions and 2 deletions

View File

@ -304,8 +304,8 @@ IdentifyAtaDevice (
// Check lowest alignment of logical blocks within physical block // Check lowest alignment of logical blocks within physical block
// //
if ((IdentifyData->alignment_logic_in_phy_blocks & (BIT14 | BIT15)) == BIT14) { if ((IdentifyData->alignment_logic_in_phy_blocks & (BIT14 | BIT15)) == BIT14) {
BlockMedia->LowestAlignedLba = (EFI_LBA) (BlockMedia->LogicalBlocksPerPhysicalBlock - (IdentifyData->alignment_logic_in_phy_blocks & 0x3fff)) % BlockMedia->LowestAlignedLba = (EFI_LBA) ((BlockMedia->LogicalBlocksPerPhysicalBlock - ((UINT32)IdentifyData->alignment_logic_in_phy_blocks & 0x3fff)) %
BlockMedia->LogicalBlocksPerPhysicalBlock; BlockMedia->LogicalBlocksPerPhysicalBlock);
} }
} }
// //