summaryrefslogtreecommitdiff
path: root/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-02-19 23:45:42 +0000
committerjljusten <jljusten@Edk2>2015-02-19 23:45:42 +0000
commitb70c4d07f35df5c5acdb87b11dabaac53288ea03 (patch)
tree530e7c157055bbdf190a39e6e6ee32fff3dc2e84 /OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
parent53596a72cd96f84c7ca83254246f3520a49861b1 (diff)
downloadedk2-platforms-b70c4d07f35df5c5acdb87b11dabaac53288ea03.tar.xz
OvmfPkg/AcpiPlatformDxe: FindAcpiTablesInFv => InstallOvmfFvTables
Since this function also installs the tables, this is a better name. It also aligns with the InstallXenTables name. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16883 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c')
-rw-r--r--OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
index 331cdc4050..3632d84375 100644
--- a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
+++ b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.c
@@ -130,14 +130,20 @@ LocateFvInstanceWithTables (
/**
- Find ACPI tables in an FV and parses them. This function is useful for QEMU and KVM.
+ Find ACPI tables in an FV and install them.
+
+ This is now a fall-back path. Normally, we will search for tables provided
+ by the VMM first.
+
+ If that fails, we use this function to load the ACPI tables from an FV. The
+ sources for the FV based tables is located under OvmfPkg/AcpiTables.
@param AcpiTable Protocol instance pointer
**/
EFI_STATUS
EFIAPI
-FindAcpiTablesInFv (
+InstallOvmfFvTables (
IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable
)
{
@@ -259,7 +265,7 @@ AcpiPlatformEntryPoint (
}
if (EFI_ERROR (Status)) {
- Status = FindAcpiTablesInFv (AcpiTable);
+ Status = InstallOvmfFvTables (AcpiTable);
}
return Status;