]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmulatorPkg/PlatformSmbiosDxe/PlatformSmbiosDxe.c
BaseTools: Library hashing fix and optimization for --hash feature
[mirror_edk2.git] / EmulatorPkg / PlatformSmbiosDxe / PlatformSmbiosDxe.c
index 123e090ed0c956cbc4ff397da7227543a71940f5..e6f87346002391fe81c4656011ba1cfd7bdac866 100644 (file)
@@ -3,13 +3,7 @@
 \r
 \r
   Copyright (c) 2012, Apple Inc. 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
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -66,10 +60,10 @@ CreatePlatformSmbiosMemoryRecords (
   while ((HobPtr.Raw = GetNextHob (EFI_HOB_TYPE_RESOURCE_DESCRIPTOR, HobPtr.Raw)) != NULL) {\r
     if (HobPtr.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {\r
       gSmbiosType19Template.ExtendedStartingAddress = HobPtr.ResourceDescriptor->PhysicalStart;\r
-      gSmbiosType19Template.ExtendedEndingAddress = \r
-        HobPtr.ResourceDescriptor->PhysicalStart + \r
+      gSmbiosType19Template.ExtendedEndingAddress =\r
+        HobPtr.ResourceDescriptor->PhysicalStart +\r
         HobPtr.ResourceDescriptor->ResourceLength - 1;\r
-      \r
+\r
       SmbiosLibCreateEntry ((SMBIOS_STRUCTURE *)&gSmbiosType19Template, NULL);\r
     }\r
     HobPtr.Raw = GET_NEXT_HOB (HobPtr);\r
@@ -97,7 +91,7 @@ PlatfomrSmbiosDriverEntryPoint (
   EFI_SMBIOS_HANDLE           SmbiosHandle;\r
   SMBIOS_STRUCTURE_POINTER    Smbios;\r
 \r
-  // Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform \r
+  // Phase 0 - Patch table to make SMBIOS 2.7 structures smaller to conform\r
   //           to an early version of the specification.\r
 \r
   // Phase 1 - Initialize SMBIOS tables from template\r
@@ -112,18 +106,18 @@ PlatfomrSmbiosDriverEntryPoint (
     Smbios.Type0->BiosSize = (UINT8)DivU64x32 (FixedPcdGet64 (PcdEmuFirmwareFdSize), 64*1024) - 1;\r
 \r
     SmbiosLibUpdateUnicodeString (\r
-      SmbiosHandle, \r
-      Smbios.Type0->BiosVersion, \r
+      SmbiosHandle,\r
+      Smbios.Type0->BiosVersion,\r
       (CHAR16 *) PcdGetPtr (PcdFirmwareVersionString)\r
       );\r
     SmbiosLibUpdateUnicodeString (\r
-      SmbiosHandle, \r
-      Smbios.Type0->BiosReleaseDate, \r
+      SmbiosHandle,\r
+      Smbios.Type0->BiosReleaseDate,\r
       (CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString)\r
       );\r
   }\r
 \r
-  // Phase 3 - Create tables from scratch \r
+  // Phase 3 - Create tables from scratch\r
 \r
   // Create Type 13 record from EFI Variables\r
   // Do we need this record for EFI as the info is available from EFI varaibles\r