MdeModulePkg:

Add ACPI SDT support. Introduce PcdInstallAcpiSdtProtocol, default FALSE.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10501 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jyao1
2010-05-18 02:26:49 +00:00
parent f0f78f9059
commit 3dc8585e0a
13 changed files with 4177 additions and 10 deletions

View File

@@ -357,6 +357,19 @@ InstallAcpiTable (
}
FreePool (AcpiTableBufferConst);
//
// Add a new table successfully, notify registed callback
//
if (FeaturePcdGet (PcdInstallAcpiSdtProtocol)) {
if (!EFI_ERROR (Status)) {
SdtNotifyAcpiList (
AcpiTableInstance,
EFI_ACPI_TABLE_VERSION_1_0B | EFI_ACPI_TABLE_VERSION_2_0 | EFI_ACPI_TABLE_VERSION_3_0,
*TableKey
);
}
}
return Status;
}
@@ -1707,6 +1720,11 @@ AcpiTableAcpiTableConstructor (
AcpiTableInstance->AcpiTableProtocol.InstallAcpiTable = InstallAcpiTable;
AcpiTableInstance->AcpiTableProtocol.UninstallAcpiTable = UninstallAcpiTable;
if (FeaturePcdGet (PcdInstallAcpiSdtProtocol)) {
SdtAcpiTableAcpiSdtConstructor (AcpiTableInstance);
}
//
// Create RSDP, RSDT, XSDT structures
// Allocate all buffers