]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 14 Oct 2012 21:17:33 +0000 (21:17 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sun, 14 Oct 2012 21:17:33 +0000 (21:17 +0000)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13847 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/VirtioBlkDxe/VirtioBlk.c

index 1ac36cd17b486b7a6b00b7f6d870e40f564eb4d0..199b9dd0ae895c86b894b0f6da3515a338c98555 100644 (file)
@@ -11,6 +11,7 @@
     synchronous requests and EFI_BLOCK_IO_PROTOCOL for now.\r
 \r
   Copyright (C) 2012, Red Hat, Inc.\r
+  Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials are licensed and made available\r
   under the terms and conditions of the BSD License which accompanies this\r
@@ -271,7 +272,7 @@ SynchronousRequest (
                    (BufferSize == 0 ? VIRTIO_BLK_T_FLUSH : VIRTIO_BLK_T_OUT) :\r
                    VIRTIO_BLK_T_IN;\r
   Request.IoPrio = 0;\r
-  Request.Sector = Lba * (BlockSize / 512);\r
+  Request.Sector = MultU64x32(Lba, BlockSize / 512);\r
 \r
   VirtioPrepare (&Dev->Ring, &Indices);\r
 \r