TianoCore EDK2
master
Loading...
Searching...
No Matches
UefiBootServicesTableLib.c
Go to the documentation of this file.
1
10
#include <
Uefi.h
>
11
12
#include <
Library/UefiBootServicesTableLib.h
>
13
#include <
Library/DebugLib.h
>
14
15
EFI_HANDLE
gImageHandle
=
NULL
;
16
EFI_SYSTEM_TABLE
*
gST
=
NULL
;
17
EFI_BOOT_SERVICES
*
gBS
=
NULL
;
18
33
EFI_STATUS
34
EFIAPI
35
UefiBootServicesTableLibConstructor
(
36
IN
EFI_HANDLE
ImageHandle,
37
IN
EFI_SYSTEM_TABLE
*SystemTable
38
)
39
{
40
//
41
// Cache the Image Handle
42
//
43
gImageHandle
= ImageHandle;
44
ASSERT (
gImageHandle
!=
NULL
);
45
46
//
47
// Cache pointer to the EFI System Table
48
//
49
gST
= SystemTable;
50
ASSERT (
gST
!=
NULL
);
51
52
//
53
// Cache pointer to the EFI Boot Services Table
54
//
55
gBS
= SystemTable->BootServices;
56
ASSERT (
gBS
!=
NULL
);
57
58
return
EFI_SUCCESS
;
59
}
NULL
#define NULL
Definition:
Base.h:319
IN
#define IN
Definition:
Base.h:279
DebugLib.h
Uefi.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_HANDLE
VOID * EFI_HANDLE
Definition:
UefiBaseType.h:33
EFI_SUCCESS
#define EFI_SUCCESS
Definition:
UefiBaseType.h:112
gST
EFI_SYSTEM_TABLE * gST
Definition:
UefiBootServicesTableLib.c:16
gImageHandle
EFI_HANDLE gImageHandle
Definition:
UefiBootServicesTableLib.c:15
UefiBootServicesTableLibConstructor
EFI_STATUS EFIAPI UefiBootServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
Definition:
UefiBootServicesTableLib.c:35
gBS
EFI_BOOT_SERVICES * gBS
Definition:
UefiBootServicesTableLib.c:17
UefiBootServicesTableLib.h
EFI_BOOT_SERVICES
Definition:
UefiSpec.h:1915
EFI_SYSTEM_TABLE
Definition:
UefiSpec.h:2028
MdePkg
Library
UefiBootServicesTableLib
UefiBootServicesTableLib.c
Generated on Fri Nov 15 2024 18:01:18 for TianoCore EDK2 by
1.9.6