diff options
author | Laszlo Ersek <lersek@redhat.com> | 2015-02-19 23:45:57 +0000 |
---|---|---|
committer | jljusten <jljusten@Edk2> | 2015-02-19 23:45:57 +0000 |
commit | 04951644cd8553e7cb40c56247d402fc10cb7dfb (patch) | |
tree | 7feb22f5c7ca2d508d1f67643489124a9b1c53d2 /OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h | |
parent | f186536bdd64424f7ee3f2b1909e0263dbb1e45f (diff) | |
download | edk2-platforms-04951644cd8553e7cb40c56247d402fc10cb7dfb.tar.xz |
OvmfPkg: AcpiPlatformDxe: extract common entry point
Currently the entry point functions of both driver builds
(AcpiPlatformDxe.inf and QemuFwCfgAcpiPlatformDxe.inf) directly contain
the logic that is different between the two builds.
Because we're going to restructure the entry point logic soon, we'd have
to duplicate the same new code between both entry point functions.
Push down the logic in which they differ to a new function:
- InstallAcpiTables() [AcpiPlatform.c]
- InstallAcpiTables() [QemuFwCfgAcpiPlatform.c]
and extract a common entry point function:
- AcpiPlatformEntryPoint() [EntryPoint.c]
which we can soon modify without code duplication.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16885 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h')
-rw-r--r-- | OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h index ae11e79e11..55b380b285 100644 --- a/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h +++ b/OvmfPkg/AcpiPlatformDxe/AcpiPlatform.h @@ -67,5 +67,11 @@ InstallQemuFwCfgTables ( IN EFI_ACPI_TABLE_PROTOCOL *AcpiProtocol
);
+EFI_STATUS
+EFIAPI
+InstallAcpiTables (
+ IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable
+ );
+
#endif
|