mirror of https://github.com/acidanthera/audk.git
OvmfPkg/VirtioBlkDxe: Fix VS2012 IA32 build
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
This commit is contained in:
parent
2f03f796a4
commit
389b5518bf
|
@ -11,6 +11,7 @@
|
||||||
synchronous requests and EFI_BLOCK_IO_PROTOCOL for now.
|
synchronous requests and EFI_BLOCK_IO_PROTOCOL for now.
|
||||||
|
|
||||||
Copyright (C) 2012, Red Hat, Inc.
|
Copyright (C) 2012, Red Hat, Inc.
|
||||||
|
Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
|
|
||||||
This program and the accompanying materials are licensed and made available
|
This program and the accompanying materials are licensed and made available
|
||||||
under the terms and conditions of the BSD License which accompanies this
|
under the terms and conditions of the BSD License which accompanies this
|
||||||
|
@ -271,7 +272,7 @@ SynchronousRequest (
|
||||||
(BufferSize == 0 ? VIRTIO_BLK_T_FLUSH : VIRTIO_BLK_T_OUT) :
|
(BufferSize == 0 ? VIRTIO_BLK_T_FLUSH : VIRTIO_BLK_T_OUT) :
|
||||||
VIRTIO_BLK_T_IN;
|
VIRTIO_BLK_T_IN;
|
||||||
Request.IoPrio = 0;
|
Request.IoPrio = 0;
|
||||||
Request.Sector = Lba * (BlockSize / 512);
|
Request.Sector = MultU64x32(Lba, BlockSize / 512);
|
||||||
|
|
||||||
VirtioPrepare (&Dev->Ring, &Indices);
|
VirtioPrepare (&Dev->Ring, &Indices);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue