]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/CpuRuntimeDxe/CpuIo.c
EmulatorPkg: Fix Visual Studio build for IA32 & X64
[mirror_edk2.git] / EmulatorPkg / CpuRuntimeDxe / CpuIo.c
index 3d4309d4221cab6ab9de63dc277811e64e285165..37905f892afd5c66fd5a9c5681c180a60c45a355 100644 (file)
@@ -6,7 +6,7 @@
   Bridge I/O Protocol.\r
 \r
 \r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 Portions copyright (c) 2011, Apple Inc. All rights reserved.\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
@@ -315,7 +315,7 @@ CpuIoCheckAddressRange (
   }\r
 \r
   Width = Width & 0x03;\r
-  if (Address - 1 + (1 << Width) * Count > Limit) {\r
+  if ((Address - 1 + LShiftU64 (Count, Width)) > Limit) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r