diff options
author | Scott Duplichan <scott@notabs.org> | 2014-11-14 17:35:42 +0000 |
---|---|---|
committer | lersek <lersek@Edk2> | 2014-11-14 17:35:42 +0000 |
commit | 860088f298de6acb26ea007e1f72db23fc613951 (patch) | |
tree | 27ac79bb49effacee8fd32c4a2726f8be406d5fd /OvmfPkg/XenPvBlkDxe/BlockIo.c | |
parent | 017a48664a4f8718d00102eb94ac6b21185e5c21 (diff) | |
download | edk2-platforms-860088f298de6acb26ea007e1f72db23fc613951.tar.xz |
OvmfPkg/XenPvBlkDxe: fix VS2010 build failures
This patch contain type casts and replace one * operation by a
MultU64x32() call.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Build-tested-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16393 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/XenPvBlkDxe/BlockIo.c')
-rw-r--r-- | OvmfPkg/XenPvBlkDxe/BlockIo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/XenPvBlkDxe/BlockIo.c b/OvmfPkg/XenPvBlkDxe/BlockIo.c index 4f3bc53f3e..7fc7a05b4c 100644 --- a/OvmfPkg/XenPvBlkDxe/BlockIo.c +++ b/OvmfPkg/XenPvBlkDxe/BlockIo.c @@ -136,7 +136,7 @@ XenPvBlkDxeBlockIoReadWriteBlocks ( }
IoData.Dev = XEN_BLOCK_FRONT_FROM_BLOCK_IO (This);
- Sector = Lba * (Media->BlockSize / 512);
+ Sector = (UINTN)MultU64x32 (Lba, Media->BlockSize / 512);
while (BufferSize > 0) {
if (((UINTN)Buffer & EFI_PAGE_MASK) == 0) {
|