X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FDxe%2FMisc%2FInstallConfigurationTable.c;h=34dc532752151428bf0e25609b2c2dac1fa4b564;hp=4eed6523b380bcacdb2678b9ce9b69f92557bd5e;hb=9c4ac31cca01b4a503c36616770ea3157bf3bb9e;hpb=fb53e6cc348e96709da625a2334faeabd4f31523 diff --git a/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c b/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c index 4eed6523b3..34dc532752 100644 --- a/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c +++ b/MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c @@ -12,46 +12,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ -#include +#include "DxeMain.h" #define CONFIG_TABLE_SIZE_INCREASED 0x10 UINTN mSystemTableAllocateSize = 0; - - -/** - Find a config table by name in system table's ConfigurationTable. - - @param Guid The table name to look for - @param Table Pointer of the config table - - @retval EFI_NOT_FOUND Could not find the table in system table's - ConfigurationTable. - @retval EFI_SUCCESS Table successfully found. - -**/ -EFI_STATUS -CoreGetConfigTable ( - IN EFI_GUID *Guid, - OUT VOID **Table - ) -{ - UINTN Index; - - for (Index = 0; Index < gDxeCoreST->NumberOfTableEntries; Index++) { - if (CompareGuid (Guid, &(gDxeCoreST->ConfigurationTable[Index].VendorGuid))) { - *Table = gDxeCoreST->ConfigurationTable[Index].VendorTable; - return EFI_SUCCESS; - } - } - - return EFI_NOT_FOUND; -} - - - - /** Boot Service called to add, modify, or remove a system configuration table from the EFI System Table. @@ -149,7 +115,7 @@ CoreInstallConfigurationTable ( // Allocate a table with one additional entry. // mSystemTableAllocateSize += (CONFIG_TABLE_SIZE_INCREASED * sizeof (EFI_CONFIGURATION_TABLE)); - EfiConfigurationTable = CoreAllocateRuntimePool (mSystemTableAllocateSize); + EfiConfigurationTable = AllocateRuntimePool (mSystemTableAllocateSize); if (EfiConfigurationTable == NULL) { // // If a new table could not be allocated, then return an error.