]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiLib/PrePiLib.c
EmbeddedPkg: Clarify the declaration of SerialPortGetControl()
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiLib / PrePiLib.c
index 4cc974f1a9b3cc152b86c71ad8e48fb5b777bbf8..9a1ef344df6e4c5f027fb6db050c8ddb500dd0a8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
   Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-  \r
+\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
@@ -43,13 +43,13 @@ LoadPeCoffImage (
   VOID                           *Buffer;\r
 \r
   ZeroMem (&ImageContext, sizeof (ImageContext));\r
-    \r
+\r
   ImageContext.Handle    = PeCoffImage;\r
   ImageContext.ImageRead = PeCoffLoaderImageReadFromMemory;\r
 \r
   Status = PeCoffLoaderGetImageInfo (&ImageContext);\r
   ASSERT_EFI_ERROR (Status);\r
-  \r
+\r
 \r
   //\r
   // Allocate Memory for the image\r
@@ -88,7 +88,7 @@ LoadPeCoffImage (
 \r
 \r
 \r
-typedef \r
+typedef\r
 VOID\r
 (EFIAPI *DXE_CORE_ENTRY_POINT) (\r
   IN  VOID *HobStart\r
@@ -116,7 +116,7 @@ LoadDxeCoreFromFfsFile (
     return Status;\r
   }\r
 \r
-  \r
+\r
   Status = LoadPeCoffImage (PeCoffImage, &ImageAddress, &ImageSize, &EntryPoint);\r
 // For NT32 Debug  Status = SecWinNtPeiLoadFile (PeCoffImage, &ImageAddress, &ImageSize, &EntryPoint);\r
   ASSERT_EFI_ERROR (Status);\r
@@ -128,22 +128,22 @@ LoadDxeCoreFromFfsFile (
   ASSERT_EFI_ERROR (Status);\r
 \r
   BuildModuleHob (&FvFileInfo.FileName, (EFI_PHYSICAL_ADDRESS)(UINTN)ImageAddress, EFI_SIZE_TO_PAGES ((UINT32) ImageSize) * EFI_PAGE_SIZE, EntryPoint);\r
-  \r
+\r
   DEBUG ((EFI_D_INFO | EFI_D_LOAD, "Loading DxeCore at 0x%10p EntryPoint=0x%10p\n", (VOID *)(UINTN)ImageAddress, (VOID *)(UINTN)EntryPoint));\r
 \r
   Hob = GetHobList ();\r
   if (StackSize == 0) {\r
     // User the current stack\r
-  \r
+\r
     ((DXE_CORE_ENTRY_POINT)(UINTN)EntryPoint) (Hob);\r
   } else {\r
-    \r
+\r
     //\r
     // Allocate 128KB for the Stack\r
     //\r
     BaseOfStack = AllocatePages (EFI_SIZE_TO_PAGES (StackSize));\r
     ASSERT (BaseOfStack != NULL);\r
-  \r
+\r
     //\r
     // Compute the top of the stack we were allocated. Pre-allocate a UINTN\r
     // for safety.\r
@@ -153,7 +153,7 @@ LoadDxeCoreFromFfsFile (
 \r
     //\r
     // Update the contents of BSP stack HOB to reflect the real stack info passed to DxeCore.\r
-    //    \r
+    //\r
     UpdateStackHob ((EFI_PHYSICAL_ADDRESS)(UINTN) BaseOfStack, StackSize);\r
 \r
     SwitchStack (\r
@@ -164,11 +164,11 @@ LoadDxeCoreFromFfsFile (
       );\r
 \r
   }\r
-  \r
+\r
   // Should never get here as DXE Core does not return\r
   DEBUG ((EFI_D_ERROR, "DxeCore returned\n"));\r
   ASSERT (FALSE);\r
-  \r
+\r
   return EFI_DEVICE_ERROR;\r
 }\r
 \r
@@ -199,9 +199,9 @@ LoadDxeCoreFromFv (
 \r
   if (!EFI_ERROR (Status)) {\r
     return LoadDxeCoreFromFfsFile (FileHandle, StackSize);\r
-  } \r
-  \r
-  return Status;  \r
+  }\r
+\r
+  return Status;\r
 }\r
 \r
 \r
@@ -219,7 +219,7 @@ DecompressFirstFv (
   if (!EFI_ERROR (Status)) {\r
     Status = FfsProcessFvFile (FileHandle);\r
   }\r
-  \r
+\r
   return Status;\r
 }\r
 \r