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
>
22
#include <
Library/DxeServicesTableLib.h
>
23
#include <
Library/DebugLib.h
>
24
#include <
Library/UefiLib.h
>
25
26
//
27
// Cache copy of the DXE Services Table
28
//
29
EFI_DXE_SERVICES
*
gDS
=
NULL
;
30
45
EFI_STATUS
46
EFIAPI
47
DxeServicesTableLibConstructor
(
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
}
DxeServices.h
gDS
EFI_DXE_SERVICES * gDS
Definition:
DxeServicesTableLib.c:29
DxeServicesTableLibConstructor
EFI_STATUS EFIAPI DxeServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition:
DxeServicesTableLib.c:47
DxeServicesTableLib.h
NULL
#define NULL
Definition:
Base.h:319
IN
#define IN
Definition:
Base.h:279
DebugLib.h
ASSERT_EFI_ERROR
#define ASSERT_EFI_ERROR(StatusParameter)
Definition:
DebugLib.h:462
PiDxe.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
UefiLib.h
EfiGetSystemConfigurationTable
EFI_STATUS EFIAPI EfiGetSystemConfigurationTable(IN EFI_GUID *TableGuid, OUT VOID **Table)
Definition:
UefiLib.c:82
DXE_SERVICES
Definition:
PiDxeCis.h:698
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
MdePkg
Library
DxeServicesTableLib
DxeServicesTableLib.c
Generated on Fri Nov 15 2024 18:01:17 for TianoCore EDK2 by
1.9.6