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:
@@ -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
|
||||
|
Reference in New Issue
Block a user