25extern BOOLEAN mDxeCapsuleLibIsExitBootService;
26EFI_EVENT mDxeRuntimeCapsuleLibVirtualAddressChangeEvent =
NULL;
27EFI_EVENT mDxeRuntimeCapsuleLibSystemResourceTableEvent =
NULL;
44 gRT->ConvertPointer (EFI_OPTIONAL_PTR, (VOID **)&mEsrtTable);
81 if (Index < gST->NumberOfTableEntries) {
85 if (mEsrtTable !=
NULL) {
100 ASSERT (mEsrtTable !=
NULL);
124 mDxeCapsuleLibIsExitBootService =
TRUE;
147 Status =
gBS->CreateEventEx (
152 &gEfiEventVirtualAddressChangeGuid,
153 &mDxeRuntimeCapsuleLibVirtualAddressChangeEvent
160 Status =
gBS->CreateEventEx (
165 &gEfiSystemResourceTableGuid,
166 &mDxeRuntimeCapsuleLibSystemResourceTableEvent
173 Status =
gBS->CreateEventEx (
178 &gEfiEventExitBootServicesGuid,
179 &mDxeRuntimeCapsuleLibExitBootServiceEvent
206 Status =
gBS->CloseEvent (mDxeRuntimeCapsuleLibVirtualAddressChangeEvent);
212 Status =
gBS->CloseEvent (mDxeRuntimeCapsuleLibSystemResourceTableEvent);
218 Status =
gBS->CloseEvent (mDxeRuntimeCapsuleLibExitBootServiceEvent);
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
EFI_STATUS EFIAPI DxeRuntimeCapsuleLibConstructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
STATIC VOID EFIAPI DxeCapsuleLibExitBootServiceEventNotify(IN EFI_EVENT Event, IN VOID *Context)
EFI_STATUS EFIAPI DxeRuntimeCapsuleLibDestructor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
STATIC VOID EFIAPI DxeCapsuleLibSystemResourceTableInstallEventNotify(IN EFI_EVENT Event, IN VOID *Context)
VOID EFIAPI DxeCapsuleLibVirtualAddressChangeEvent(IN EFI_EVENT Event, IN VOID *Context)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateRuntimeCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
EFI_RUNTIME_SERVICES * gRT
#define ASSERT_EFI_ERROR(StatusParameter)
UINT32 FwResourceCountMax
EFI_CONFIGURATION_TABLE * ConfigurationTable
UINTN NumberOfTableEntries