Added global variable initialization
This commit is contained in:
parent
56b5f9bf4f
commit
5c7e1d3246
1 changed files with 12 additions and 0 deletions
12
efilib.h
12
efilib.h
|
@ -2,8 +2,20 @@
|
||||||
#define EFI_EFILIB_H
|
#define EFI_EFILIB_H
|
||||||
|
|
||||||
#include "efi.h"
|
#include "efi.h"
|
||||||
|
#include "efi_st.h"
|
||||||
|
|
||||||
#define EFI_ERROR(status) (((INTN)(status)) < 0)
|
#define EFI_ERROR(status) (((INTN)(status)) < 0)
|
||||||
|
|
||||||
|
static EFI_HANDLE g_ImageHandle;
|
||||||
|
static EFI_SYSTEM_TABLE *g_SystemTable;
|
||||||
|
static EFI_BOOT_SERVICES *g_BootServices;
|
||||||
|
|
||||||
|
static inline void EfiLibInitialize(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
|
||||||
|
{
|
||||||
|
g_ImageHandle = ImageHandle;
|
||||||
|
g_SystemTable = SystemTable;
|
||||||
|
g_BootServices = SystemTable->BootServices;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* EFI_EFILIB_H */
|
#endif /* EFI_EFILIB_H */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue