TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeServicesTableLib.c
Go to the documentation of this file.
1
20#include <PiDxe.h>
21#include <Guid/DxeServices.h>
23#include <Library/DebugLib.h>
24#include <Library/UefiLib.h>
25
26//
27// Cache copy of the DXE Services Table
28//
30
46EFIAPI
48 IN EFI_HANDLE ImageHandle,
49 IN EFI_SYSTEM_TABLE *SystemTable
50 )
51{
52 EFI_STATUS Status;
53
54 //
55 // Cache copy of the DXE Services Table
56 //
57 Status = EfiGetSystemConfigurationTable (&gEfiDxeServicesTableGuid, (VOID **)&gDS);
58 ASSERT_EFI_ERROR (Status);
59 ASSERT (gDS != NULL);
60
61 return Status;
62}
EFI_DXE_SERVICES * gDS
EFI_STATUS EFIAPI DxeServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define ASSERT_EFI_ERROR(StatusParameter)
Definition: DebugLib.h:462
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_STATUS EFIAPI EfiGetSystemConfigurationTable(IN EFI_GUID *TableGuid, OUT VOID **Table)
Definition: UefiLib.c:82