TianoCore EDK2 master
Loading...
Searching...
No Matches
EntryPoint.c
Go to the documentation of this file.
1
10#include <Library/DebugLib.h> // ASSERT_EFI_ERROR()
12#include <Protocol/AcpiTable.h> // EFI_ACPI_TABLE_PROTOCOL
13
14#include "AcpiPlatform.h"
15
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
35EFIAPI
37 IN EFI_HANDLE ImageHandle,
38 IN EFI_SYSTEM_TABLE *SystemTable
39 )
40{
41 return InstallAcpiTables (FindAcpiTableProtocol ());
42}
STATIC EFI_ACPI_TABLE_PROTOCOL * FindAcpiTableProtocol(VOID)
Definition: CloudHvAcpi.c:25
EFI_STATUS EFIAPI AcpiPlatformEntryPoint(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition: AcpiPlatform.c:159
#define NULL
Definition: Base.h:319
#define STATIC
Definition: Base.h:264
#define IN
Definition: Base.h:279
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
EFI_STATUS EFIAPI InstallAcpiTables(IN EFI_ACPI_TABLE_PROTOCOL *AcpiTable)
Definition: AcpiPlatform.c:30
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS