]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/CapsuleRuntimeDxe/X64/SaveLongModeContext.c
MdeModulePkg: Clean up source files
[mirror_edk2.git] / MdeModulePkg / Universal / CapsuleRuntimeDxe / X64 / SaveLongModeContext.c
index b0512fdf1342292e7b1c3005d92885d0b48dbefa..b4d4844278d2a0d178a59f54bed8f5289dbdef46 100644 (file)
@@ -2,7 +2,7 @@
   Create the variable to save the base address of page table and stack\r
   for transferring into long mode in IA32 capsule PEI.\r
 \r
-Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\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
@@ -42,7 +42,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   This function allocates EfiReservedMemoryType below 4G memory address.\r
 \r
   @param  Size      Size of memory to allocate.\r
-  \r
+\r
   @return Allocated Address for output.\r
 \r
 **/\r
@@ -164,14 +164,14 @@ PrepareContextForCapsulePei (
 \r
   LongModeBuffer.PageTableAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedMemoryBelow4G (EFI_PAGES_TO_SIZE (TotalPagesNum));\r
   ASSERT (LongModeBuffer.PageTableAddress != 0);\r
-  \r
+\r
   //\r
   // Allocate stack\r
   //\r
   LongModeBuffer.StackSize        = PcdGet32 (PcdCapsulePeiLongModeStackSize);\r
   LongModeBuffer.StackBaseAddress = (EFI_PHYSICAL_ADDRESS)(UINTN)AllocateReservedMemoryBelow4G (PcdGet32 (PcdCapsulePeiLongModeStackSize));\r
-  ASSERT (LongModeBuffer.StackBaseAddress != 0);  \r
-  \r
+  ASSERT (LongModeBuffer.StackBaseAddress != 0);\r
+\r
   Status = gRT->SetVariable (\r
                   EFI_CAPSULE_LONG_MODE_BUFFER_NAME,\r
                   &gEfiCapsuleVendorGuid,\r
@@ -190,7 +190,7 @@ PrepareContextForCapsulePei (
         VariableLockCapsuleLongModeBufferVariable,\r
         NULL,\r
         &Registration\r
-        );    \r
+        );\r
   } else {\r
       DEBUG ((EFI_D_ERROR, "FATAL ERROR: CapsuleLongModeBuffer cannot be saved: %r. Capsule in PEI may fail!\n", Status));\r
       gBS->FreePages (LongModeBuffer.StackBaseAddress, EFI_SIZE_TO_PAGES (LongModeBuffer.StackSize));\r