TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiBootServicesTableLib.c
Go to the documentation of this file.
1
10#include <Uefi.h>
11
13#include <Library/DebugLib.h>
14
18
34EFIAPI
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}
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112
EFI_SYSTEM_TABLE * gST
EFI_HANDLE gImageHandle
EFI_STATUS EFIAPI UefiBootServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_BOOT_SERVICES * gBS