]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Pei/Hob/Hob.c
Code scrub for PeiCore module.
[mirror_edk2.git] / MdeModulePkg / Core / Pei / Hob / Hob.c
index aa38228bec647c9312cb3433fda6d79b66f57e07..4eb4b9a8921a116f7e3b12ea8466a9ca70be1927 100644 (file)
@@ -18,7 +18,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
   Gets the pointer to the HOB List.\r
 \r
-\r
   @param PeiServices                   The PEI core services table.\r
   @param HobList                       Pointer to the HOB List.\r
 \r
@@ -35,7 +34,6 @@ PeiGetHobList (
   )\r
 {\r
   PEI_CORE_INSTANCE *PrivateData;\r
-\r
   \r
   //\r
   // Only check this parameter in debug mode\r
@@ -51,7 +49,6 @@ PeiGetHobList (
 \r
   *HobList    = PrivateData->HobList.Raw;\r
 \r
-\r
   return EFI_SUCCESS;   \r
 }\r
 \r
@@ -59,10 +56,10 @@ PeiGetHobList (
 /**\r
   Add a new HOB to the HOB List.\r
 \r
-  @param PeiServices     - The PEI core services table.\r
-  @param Type            - Type of the new HOB.\r
-  @param Length          - Length of the new HOB to allocate.\r
-  @param Hob             - Pointer to the new HOB.\r
+  @param PeiServices      The PEI core services table.\r
+  @param Type             Type of the new HOB.\r
+  @param Length           Length of the new HOB to allocate.\r
+  @param Hob              Pointer to the new HOB.\r
 \r
   @return  EFI_SUCCESS           Success to create hob.\r
   @retval  EFI_INVALID_PARAMETER if Hob is NULL\r
@@ -118,11 +115,9 @@ PeiCreateHob (
   HobEnd++;\r
   HandOffHob->EfiFreeMemoryBottom = (EFI_PHYSICAL_ADDRESS) (UINTN) HobEnd;\r
 \r
-\r
   return EFI_SUCCESS;   \r
 }\r
 \r
-\r
 /**\r
 \r
   Builds a Handoff Information Table HOB\r
@@ -144,15 +139,15 @@ PeiCoreBuildHobHandoffInfoTable (
   EFI_HOB_HANDOFF_INFO_TABLE   *Hob;\r
   EFI_HOB_GENERIC_HEADER       *HobEnd;\r
 \r
-  Hob    = (VOID *)(UINTN)MemoryBegin;\r
-  HobEnd = (EFI_HOB_GENERIC_HEADER*) (Hob+1);\r
-  Hob->Header.HobType   = EFI_HOB_TYPE_HANDOFF;\r
-  Hob->Header.HobLength = sizeof(EFI_HOB_HANDOFF_INFO_TABLE);\r
-  Hob->Header.Reserved  = 0;\r
+  Hob                      = (VOID *)(UINTN)MemoryBegin;\r
+  HobEnd                   = (EFI_HOB_GENERIC_HEADER*) (Hob+1);\r
+  Hob->Header.HobType      = EFI_HOB_TYPE_HANDOFF;\r
+  Hob->Header.HobLength    = sizeof(EFI_HOB_HANDOFF_INFO_TABLE);\r
+  Hob->Header.Reserved     = 0;\r
   \r
-  HobEnd->HobType     = EFI_HOB_TYPE_END_OF_HOB_LIST;\r
-  HobEnd->HobLength   = sizeof(EFI_HOB_GENERIC_HEADER);\r
-  HobEnd->Reserved    = 0;\r
+  HobEnd->HobType          = EFI_HOB_TYPE_END_OF_HOB_LIST;\r
+  HobEnd->HobLength        = sizeof(EFI_HOB_GENERIC_HEADER);\r
+  HobEnd->Reserved         = 0;\r
 \r
   Hob->Version             = EFI_HOB_HANDOFF_TABLE_VERSION;\r
   Hob->BootMode            = BootMode;\r
@@ -160,7 +155,7 @@ PeiCoreBuildHobHandoffInfoTable (
   Hob->EfiMemoryTop        = MemoryBegin + MemoryLength;\r
   Hob->EfiMemoryBottom     = MemoryBegin;\r
   Hob->EfiFreeMemoryTop    = MemoryBegin + MemoryLength;\r
-  Hob->EfiFreeMemoryBottom = (EFI_PHYSICAL_ADDRESS) (UINTN) (HobEnd+1);\r
+  Hob->EfiFreeMemoryBottom = (EFI_PHYSICAL_ADDRESS) (UINTN) (HobEnd + 1);\r
   Hob->EfiEndOfHobList     = (EFI_PHYSICAL_ADDRESS) (UINTN) HobEnd;\r
 \r
   return EFI_SUCCESS;\r