]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/Ipf/IpfBootSupport.c
EmbeddedPkg: Removing ipf which is no longer supported from edk2.
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / Ipf / IpfBootSupport.c
index b6787ae0e7bfe114760c8558c8e285a54517abbe..b4cc8d253da4a89412524e09740c4bd3f1d4a711 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 \r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions\r
@@ -223,10 +223,10 @@ RelocateImageUnder4GIfNeeded (
       }\r
       ImageContext.ImageAddress = (PHYSICAL_ADDRESS)MemoryAddress;\r
       //\r
-      // Align buffer on section boundry\r
+      // Align buffer on section boundary\r
       //\r
       ImageContext.ImageAddress += ImageContext.SectionAlignment - 1;\r
-      ImageContext.ImageAddress &= ~(ImageContext.SectionAlignment - 1);\r
+     ImageContext.ImageAddress &= ~((PHYSICAL_ADDRESS)ImageContext.SectionAlignment - 1);\r
 \r
       //\r
       // Load the image to our new buffer\r
@@ -248,7 +248,7 @@ RelocateImageUnder4GIfNeeded (
 \r
       //\r
       // Create a new handle with gEfiCallerIdGuid to be used as the ImageHandle fore the reloaded image\r
-      // \r
+      //\r
       NewImageHandle = NULL;\r
       Status = gBS->InstallProtocolInterface (\r
                       &NewImageHandle,\r