X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=DuetPkg%2FPciRootBridgeNoEnumerationDxe%2FDeviceIo.c;h=20098d94eb02f1725cc339dfe4932aab0090399e;hb=b1f700a8593435e2bdc8f9b3dc21bced4774c80f;hp=8525b4b94e5b515ceac4798f7e33f432e055b007;hpb=8e53d24672edba2361b05e6e9046358b199f10b5;p=mirror_edk2.git diff --git a/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c b/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c index 8525b4b94e..20098d94eb 100644 --- a/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c +++ b/DuetPkg/PciRootBridgeNoEnumerationDxe/DeviceIo.c @@ -1,7 +1,7 @@ /*++ -Copyright (c) 2006 - 2008, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006 - 2008, 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 http://opensource.org/licenses/bsd-license.php @@ -137,7 +137,7 @@ Returns: return EFI_INVALID_PARAMETER; } if (Width >= MMIO_COPY_UINT8) { - Width = Width - MMIO_COPY_UINT8; + Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8); Status = Private->PciRootBridgeIo->CopyMem ( Private->PciRootBridgeIo, (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width, @@ -201,7 +201,7 @@ Returns: return EFI_INVALID_PARAMETER; } if (Width >= MMIO_COPY_UINT8) { - Width = Width - MMIO_COPY_UINT8; + Width = (EFI_IO_WIDTH) (Width - MMIO_COPY_UINT8); Status = Private->PciRootBridgeIo->CopyMem ( Private->PciRootBridgeIo, (EFI_PCI_ROOT_BRIDGE_IO_PROTOCOL_WIDTH) Width,