TianoCore EDK2 master
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;
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:312
#define IN
Definition: Base.h:279
#define ASSERT(Expression)
Definition: DebugLib.h:391
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:28
VOID * EFI_HANDLE
Definition: UefiBaseType.h:32
#define EFI_SUCCESS
Definition: UefiBaseType.h:111
EFI_SYSTEM_TABLE * gST
EFI_HANDLE gImageHandle
EFI_STATUS EFIAPI UefiBootServicesTableLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_BOOT_SERVICES * gBS