]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenAcpiPlatformDxe/EntryPoint.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / OvmfPkg / XenAcpiPlatformDxe / EntryPoint.c
1 /** @file
2 Entry point of OVMF ACPI Platform Driver for Xen guests
3
4 Copyright (C) 2015-2021, Red Hat, Inc.
5 Copyright (c) 2008 - 2015, Intel Corporation. All rights reserved.<BR>
6
7 SPDX-License-Identifier: BSD-2-Clause-Patent
8 **/
9
10 #include <Library/DebugLib.h> // ASSERT_EFI_ERROR()
11 #include <Library/UefiBootServicesTableLib.h> // gBS
12 #include <Protocol/AcpiTable.h> // EFI_ACPI_TABLE_PROTOCOL
13
14 #include "AcpiPlatform.h"
15
16 STATIC
17 EFI_ACPI_TABLE_PROTOCOL *
18 FindAcpiTableProtocol (
19 VOID
20 )
21 {
22 EFI_STATUS Status;
23 EFI_ACPI_TABLE_PROTOCOL *AcpiTable;
24
25 Status = gBS->LocateProtocol (
26 &gEfiAcpiTableProtocolGuid,
27 NULL,
28 (VOID **)&AcpiTable
29 );
30 ASSERT_EFI_ERROR (Status);
31 return AcpiTable;
32 }
33
34 EFI_STATUS
35 EFIAPI
36 AcpiPlatformEntryPoint (
37 IN EFI_HANDLE ImageHandle,
38 IN EFI_SYSTEM_TABLE *SystemTable
39 )
40 {
41 return InstallAcpiTables (FindAcpiTableProtocol ());
42 }