]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/CpuRuntimeDxe/CpuIo.c
EmulatorPkg/MpService: remove redundant switch-case statement
[mirror_edk2.git] / EmulatorPkg / CpuRuntimeDxe / CpuIo.c
index a8c10ba55588674d78004f40991df32f21da6e68..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
@@ -18,12 +18,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#include <FrameworkDxe.h>\r
+#include <PiDxe.h>\r
 #include <Protocol/Cpu.h>\r
-#include <Protocol/DataHub.h>\r
-#include <Guid/DataHubRecords.h>\r
 #include <Protocol/CpuIo2.h>\r
-#include <Protocol/FrameworkHii.h>\r
 \r
 #include <Library/BaseLib.h>\r
 #include <Library/DebugLib.h>\r
@@ -318,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