summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-17 11:06:45 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-03-17 11:06:45 +0000
commitd96d37d8b95d08264557ea91ca6a6e2b5f07767b (patch)
tree9299fe7914b3a1456224142ce173f47be0a7af25 /IntelFrameworkModulePkg
parentc61f936286cd8b929835dce81424a19fbcebba95 (diff)
downloadedk2-platforms-d96d37d8b95d08264557ea91ca6a6e2b5f07767b.tar.xz
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@10268 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'IntelFrameworkModulePkg')
-rw-r--r--IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c
index 7d92065b1c..1743b4c52d 100644
--- a/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c
+++ b/IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/Ata.c
@@ -2563,8 +2563,8 @@ AtaEnableLongPhysicalSector (
//
if ((AtaIdentifyData->alignment_logic_in_phy_blocks & 0xc000) == 0x4000) {
IdeDev->BlkIo.Media->LowestAlignedLba =
- (EFI_LBA) (IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock - (AtaIdentifyData->alignment_logic_in_phy_blocks & 0x3fff)) %
- IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock;
+ (EFI_LBA) ((IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock - ((UINT32)AtaIdentifyData->alignment_logic_in_phy_blocks & 0x3fff)) %
+ IdeDev->BlkIo.Media->LogicalBlocksPerPhysicalBlock);
}
}
//