]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/CpuRuntimeDxe/CpuIo.c
UefiPayloadPkg: Add PCI root bridge info hob support for SBL
[mirror_edk2.git] / EmulatorPkg / CpuRuntimeDxe / CpuIo.c
index 3d4309d4221cab6ab9de63dc277811e64e285165..152c2604513d4d558788e2234d915ea7e0d9fe27 100644 (file)
@@ -6,15 +6,9 @@
   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
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -315,7 +309,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