OvmfPkg/AcpiPlatformDxe: Use XenPlatformLib
This patch replace the XenDetected() function by the one in XenPlatformLib. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689 Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20190813113119.14804-15-anthony.perard@citrix.com>
This commit is contained in:
committed by
Laszlo Ersek
parent
f496443eb3
commit
3afa2ed53f
@@ -9,8 +9,6 @@
|
||||
**/
|
||||
|
||||
#include "AcpiPlatform.h"
|
||||
#include <Library/HobLib.h>
|
||||
#include <Guid/XenInfo.h>
|
||||
#include <Library/BaseLib.h>
|
||||
|
||||
#define XEN_ACPI_PHYSICAL_ADDRESS 0x000EA020
|
||||
@@ -18,28 +16,6 @@
|
||||
|
||||
EFI_ACPI_2_0_ROOT_SYSTEM_DESCRIPTION_POINTER *XenAcpiRsdpStructurePtr = NULL;
|
||||
|
||||
/**
|
||||
This function detects if OVMF is running on Xen.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
XenDetected (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_HOB_GUID_TYPE *GuidHob;
|
||||
|
||||
//
|
||||
// See if a XenInfo HOB is available
|
||||
//
|
||||
GuidHob = GetFirstGuidHob (&gEfiXenInfoGuid);
|
||||
if (GuidHob == NULL) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
Get the address of Xen ACPI Root System Description Pointer (RSDP)
|
||||
structure.
|
||||
|
Reference in New Issue
Block a user