]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Csm/LegacyBiosDxe/LegacyBootSupport.c
IntelFrameworkModulePkg: Clean up source files
[mirror_edk2.git] / IntelFrameworkModulePkg / Csm / LegacyBiosDxe / LegacyBootSupport.c
index 57ab78d6484cce913a9b693d45a98b23bd73ceb3..a7b8e6a9a0ae7f4ded9293b5b8f4646935939b93 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2017, 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
@@ -791,15 +791,15 @@ CreateSmbiosTableInReservedMemory (
   )\r
 {\r
   SMBIOS_TABLE_ENTRY_POINT    *EntryPointStructure;\r
-  \r
-  if ((mRuntimeSmbiosEntryPoint == NULL) || \r
-      (mReserveSmbiosEntryPoint == 0) || \r
+\r
+  if ((mRuntimeSmbiosEntryPoint == NULL) ||\r
+      (mReserveSmbiosEntryPoint == 0) ||\r
       (mStructureTableAddress == 0)) {\r
     return;\r
   }\r
-  \r
+\r
   EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *) mRuntimeSmbiosEntryPoint;\r
-  \r
+\r
   //\r
   // Copy SMBIOS Entry Point Structure\r
   //\r
@@ -808,7 +808,7 @@ CreateSmbiosTableInReservedMemory (
     EntryPointStructure,\r
     EntryPointStructure->EntryPointLength\r
   );\r
-  \r
+\r
   //\r
   // Copy SMBIOS Structure Table into EfiReservedMemoryType memory\r
   //\r
@@ -817,22 +817,22 @@ CreateSmbiosTableInReservedMemory (
     (VOID *)(UINTN) EntryPointStructure->TableAddress,\r
     EntryPointStructure->TableLength\r
   );\r
-  \r
+\r
   //\r
   // Update TableAddress in Entry Point Structure\r
   //\r
   EntryPointStructure = (SMBIOS_TABLE_ENTRY_POINT *)(UINTN) mReserveSmbiosEntryPoint;\r
   EntryPointStructure->TableAddress = (UINT32)(UINTN) mStructureTableAddress;\r
-  \r
+\r
   //\r
   // Fixup checksums in the Entry Point Structure\r
   //\r
   EntryPointStructure->IntermediateChecksum = 0;\r
   EntryPointStructure->EntryPointStructureChecksum = 0;\r
 \r
-  EntryPointStructure->IntermediateChecksum = \r
+  EntryPointStructure->IntermediateChecksum =\r
     CalculateCheckSum8 (\r
-      (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString), \r
+      (UINT8 *) EntryPointStructure + OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString),\r
       EntryPointStructure->EntryPointLength - OFFSET_OF (SMBIOS_TABLE_ENTRY_POINT, IntermediateAnchorString)\r
       );\r
   EntryPointStructure->EntryPointStructureChecksum =\r
@@ -898,7 +898,7 @@ GenericLegacyBoot (
 \r
   EfiToLegacy16BootTable->MajorVersion = EFI_TO_LEGACY_MAJOR_VERSION;\r
   EfiToLegacy16BootTable->MinorVersion = EFI_TO_LEGACY_MINOR_VERSION;\r
-  \r
+\r
   //\r
   // If booting to a legacy OS then force HDD drives to the appropriate\r
   // boot mode by calling GetIdeHandle.\r
@@ -916,7 +916,7 @@ GenericLegacyBoot (
                                   );\r
     if (!EFI_ERROR (Status)) {\r
       IdeController = HandleBuffer[0];\r
-    }   \r
+    }\r
   }\r
   //\r
   // Unlock the Legacy BIOS region\r
@@ -1295,7 +1295,7 @@ GenericLegacyBoot (
     // Disable DXE Timer while executing in real mode\r
     //\r
     Private->Timer->SetTimerPeriod (Private->Timer, 0);\r
-    \r
+\r
     //\r
     // Save and disable interrupt of debug timer\r
     //\r
@@ -1464,8 +1464,8 @@ LegacyBiosBootUnconventionalDevice (
   }\r
 \r
   UcdTable = (UD_TABLE *) AllocatePool (\r
-                                                                                                               sizeof (UD_TABLE)\r
-                                                                                                               );\r
+                            sizeof (UD_TABLE)\r
+                            );\r
   if (NULL == UcdTable) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r