]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c
Clean up DxeCore to remove duplicate memory allocation & device path utility services...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Misc / InstallConfigurationTable.c
index 4eed6523b380bcacdb2678b9ce9b69f92557bd5e..34dc532752151428bf0e25609b2c2dac1fa4b564 100644 (file)
@@ -12,46 +12,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 **/\r
 \r
-#include <DxeMain.h>\r
+#include "DxeMain.h"\r
 \r
 #define CONFIG_TABLE_SIZE_INCREASED 0x10\r
 \r
 UINTN mSystemTableAllocateSize = 0;\r
 \r
-\r
-\r
-/**\r
-  Find a config table by name in system table's ConfigurationTable.\r
-\r
-  @param  Guid           The table name to look for\r
-  @param  Table          Pointer of the config table\r
-\r
-  @retval EFI_NOT_FOUND  Could not find the table in system table's\r
-                         ConfigurationTable.\r
-  @retval EFI_SUCCESS    Table successfully found.\r
-\r
-**/\r
-EFI_STATUS\r
-CoreGetConfigTable (\r
-  IN EFI_GUID *Guid,\r
-  OUT VOID    **Table\r
-  )\r
-{\r
-  UINTN Index;\r
-\r
-  for (Index = 0; Index < gDxeCoreST->NumberOfTableEntries; Index++) {\r
-    if (CompareGuid (Guid, &(gDxeCoreST->ConfigurationTable[Index].VendorGuid))) {\r
-      *Table = gDxeCoreST->ConfigurationTable[Index].VendorTable;\r
-      return EFI_SUCCESS;\r
-    }\r
-  }\r
-\r
-  return EFI_NOT_FOUND;\r
-}\r
-\r
-\r
-\r
-\r
 /**\r
   Boot Service called to add, modify, or remove a system configuration table from\r
   the EFI System Table.\r
@@ -149,7 +115,7 @@ CoreInstallConfigurationTable (
       // Allocate a table with one additional entry.\r
       //\r
       mSystemTableAllocateSize += (CONFIG_TABLE_SIZE_INCREASED * sizeof (EFI_CONFIGURATION_TABLE));\r
-      EfiConfigurationTable = CoreAllocateRuntimePool (mSystemTableAllocateSize);\r
+      EfiConfigurationTable = AllocateRuntimePool (mSystemTableAllocateSize);\r
       if (EfiConfigurationTable == NULL) {\r
         //\r
         // If a new table could not be allocated, then return an error.\r