VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/XenAcpiPlatformDxe/EntryPoint.c@ 106129

Last change on this file since 106129 was 99404, checked in by vboxsync, 23 months ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1004 bytes
Line 
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
16STATIC
17EFI_ACPI_TABLE_PROTOCOL *
18FindAcpiTableProtocol (
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
34EFI_STATUS
35EFIAPI
36AcpiPlatformEntryPoint (
37 IN EFI_HANDLE ImageHandle,
38 IN EFI_SYSTEM_TABLE *SystemTable
39 )
40{
41 return InstallAcpiTables (FindAcpiTableProtocol ());
42}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette