X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FNvmExpressDxe%2FNvmExpressBlockIo.c;h=2af2df7549b9a98d98dfce774943c6266e393cdc;hp=6cb2f92e8dded76b4f42f0687e4094f09b7b56c8;hb=c59218126689f834aa1896c39a1e2bbd1baf751a;hpb=faf0f16cefaa38f70ff08b7560a5795fffdfb6b5 diff --git a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c index 6cb2f92e8d..2af2df7549 100644 --- a/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c +++ b/MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressBlockIo.c @@ -2,7 +2,7 @@ NvmExpressDxe driver is used to manage non-volatile memory subsystem which follows NVM Express specification. - Copyright (c) 2013 - 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -63,7 +63,7 @@ ReadSectors ( CommandPacket.QueueType = NVME_IO_QUEUE; CommandPacket.NvmeCmd->Cdw10 = (UINT32)Lba; - CommandPacket.NvmeCmd->Cdw11 = (UINT32)(Lba >> 32); + CommandPacket.NvmeCmd->Cdw11 = (UINT32)RShiftU64(Lba, 32); CommandPacket.NvmeCmd->Cdw12 = (Blocks - 1) & 0xFFFF; CommandPacket.NvmeCmd->Flags = CDW10_VALID | CDW11_VALID | CDW12_VALID; @@ -126,7 +126,7 @@ WriteSectors ( CommandPacket.QueueType = NVME_IO_QUEUE; CommandPacket.NvmeCmd->Cdw10 = (UINT32)Lba; - CommandPacket.NvmeCmd->Cdw11 = (UINT32)(Lba >> 32); + CommandPacket.NvmeCmd->Cdw11 = (UINT32)RShiftU64(Lba, 32); CommandPacket.NvmeCmd->Cdw12 = (Blocks - 1) & 0xFFFF; CommandPacket.MetadataBuffer = NULL;