]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StandaloneMmPkg/Core/InstallConfigurationTable.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / StandaloneMmPkg / Core / InstallConfigurationTable.c
index 2392be9958bba517cece5e2eafae19b2909fdf31..a4a2de7cd37fb55d23ef47cb9ecf335699198e0f 100644 (file)
@@ -3,19 +3,13 @@
 \r
   Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>\r
   Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
-  This program and the accompanying materials are licensed and made available\r
-  under the terms and conditions of the BSD License which accompanies this\r
-  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
 #include "StandaloneMmCore.h"\r
 \r
-#define CONFIG_TABLE_SIZE_INCREASED 0x10\r
+#define CONFIG_TABLE_SIZE_INCREASED  0x10\r
 \r
 UINTN  mMmSystemTableAllocateSize = 0;\r
 \r
@@ -39,10 +33,10 @@ UINTN  mMmSystemTableAllocateSize = 0;
 EFI_STATUS\r
 EFIAPI\r
 MmInstallConfigurationTable (\r
-  IN  CONST EFI_MM_SYSTEM_TABLE    *SystemTable,\r
-  IN  CONST EFI_GUID               *Guid,\r
-  IN  VOID                         *Table,\r
-  IN  UINTN                        TableSize\r
+  IN  CONST EFI_MM_SYSTEM_TABLE  *SystemTable,\r
+  IN  CONST EFI_GUID             *Guid,\r
+  IN  VOID                       *Table,\r
+  IN  UINTN                      TableSize\r
   )\r
 {\r
   UINTN                    Index;\r
@@ -93,7 +87,6 @@ MmInstallConfigurationTable (
       &(ConfigurationTable[Index + 1]),\r
       (gMmCoreMmst.NumberOfTableEntries - Index) * sizeof (EFI_CONFIGURATION_TABLE)\r
       );\r
-\r
   } else {\r
     //\r
     // No matching GUIDs were found, so this is an add operation.\r
@@ -113,7 +106,7 @@ MmInstallConfigurationTable (
       // Allocate a table with one additional entry.\r
       //\r
       mMmSystemTableAllocateSize += (CONFIG_TABLE_SIZE_INCREASED * sizeof (EFI_CONFIGURATION_TABLE));\r
-      ConfigurationTable = AllocatePool (mMmSystemTableAllocateSize);\r
+      ConfigurationTable          = AllocatePool (mMmSystemTableAllocateSize);\r
       if (ConfigurationTable == NULL) {\r
         //\r
         // If a new table could not be allocated, then return an error.\r