]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Misc / DebugImageInfo.c
index fda6d44043d3e044701f224ff5943b2643359e12..a75d4158280b9597e5d265d8ce6fecdeeb49598c 100644 (file)
@@ -2,14 +2,8 @@
   Support functions for managing debug image info table when loading and unloading\r
   images.\r
 \r
-Copyright (c) 2006 - 2017, 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
-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
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -65,9 +59,9 @@ CoreInitializeDebugImageInfoTable (
     Memory = MAX_ADDRESS;\r
   }\r
   Status = CoreAllocatePages (\r
-             AllocateMaxAddress, \r
+             AllocateMaxAddress,\r
              EfiBootServicesData,\r
-             RealPages, \r
+             RealPages,\r
              &Memory\r
              );\r
   if (EFI_ERROR (Status)) {\r
@@ -80,16 +74,16 @@ CoreInitializeDebugImageInfoTable (
     // as close to the top of memory as feasible.\r
     //\r
     Status = CoreAllocatePages (\r
-               AllocateAnyPages, \r
+               AllocateAnyPages,\r
                EfiBootServicesData,\r
-               RealPages, \r
+               RealPages,\r
                &Memory\r
                );\r
     ASSERT_EFI_ERROR (Status);\r
     if (EFI_ERROR (Status)) {\r
       return;\r
     }\r
-  }  \r
+  }\r
 \r
   //\r
   // Free overallocated pages\r
@@ -121,13 +115,13 @@ CoreInitializeDebugImageInfoTable (
 \r
   //\r
   // Initialize EFI_SYSTEM_TABLE_POINTER structure\r
-  //  \r
+  //\r
   mDebugTable->Signature          = EFI_SYSTEM_TABLE_SIGNATURE;\r
   mDebugTable->EfiSystemTableBase = (EFI_PHYSICAL_ADDRESS) (UINTN) gDxeCoreST;\r
   mDebugTable->Crc32              = 0;\r
-  \r
+\r
   //\r
-  // Install the EFI_SYSTEM_TABLE_POINTER structure in the EFI System \r
+  // Install the EFI_SYSTEM_TABLE_POINTER structure in the EFI System\r
   // Configuration Table\r
   //\r
   Status = CoreInstallConfigurationTable (&gEfiDebugImageInfoTableGuid, &mDebugInfoTableHeader);\r
@@ -182,7 +176,7 @@ CoreNewDebugImageInfoEntry (
   mDebugInfoTableHeader.UpdateStatus |= EFI_DEBUG_IMAGE_INFO_UPDATE_IN_PROGRESS;\r
 \r
   Table = mDebugInfoTableHeader.EfiDebugImageInfoTable;\r
-  \r
+\r
   if (mDebugInfoTableHeader.TableSize < mMaxTableEntries) {\r
     //\r
     // We still have empty entires in the Table, find the first empty entry.\r