OvmfPkg/Xen: export search of RSDP into a library function

Xen and bhyve are placing ACPI tables into system memory. So, they can
share the same code. Therefore, create a new library which searches and
installs ACPI tables from system memory.

Signed-off-by: Corvin Köhne <corvink@FreeBSD.org>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Corvin Köhne
2023-06-06 11:21:37 +02:00
committed by mergify[bot]
parent c1dd400a13
commit f211292711
7 changed files with 152 additions and 90 deletions

View File

@@ -0,0 +1,26 @@
## @file
# ACPI Platform Library Instance.
#
# Copyright (C) 2023, Corvin Köhne <corvink@FreeBSD.org>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = DxeAcpiPlatformLib
FILE_GUID = 578F441A-4A4C-4D24-B9BE-F783152B46F6
MODULE_TYPE = DXE_DRIVER
VERSION_STRING = 1.0
LIBRARY_CLASS = AcpiPlatformLib
[Sources]
DxeAcpiPlatformLib.c
[Packages]
MdePkg/MdePkg.dec
OvmfPkg/OvmfPkg.dec
[LibraryClasses]
BaseLib
DebugLib