Skip to content

Commit

Permalink
MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices
Browse files Browse the repository at this point in the history
Location of notification is has been specified in UEFI v2.9.

Cc: Gerd Hoffmann <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Tom Lendacky <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: "Min M. Xu" <[email protected]>
Cc: Andrew Fish <[email protected]>
Cc: "Michael D. Kinney" <[email protected]>
Cc: Ray Ni <[email protected]>

Acked-by: Jiewen Yao <[email protected]>
Reviewed-by: Michael D Kinney <[email protected]>
Signed-off-by: Dionna Glaze <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
deeglaze authored and mergify[bot] committed Jan 12, 2023
1 parent 82b0ee8 commit 9d70d8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions MdeModulePkg/Core/Dxe/DxeMain.inf
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
gEfiEventVirtualAddressChangeGuid ## CONSUMES ## Event
## CONSUMES ## Event
## PRODUCES ## Event
gEfiEventBeforeExitBootServicesGuid
gEfiEventExitBootServicesGuid
gEfiHobMemoryAllocModuleGuid ## SOMETIMES_CONSUMES ## HOB
gEfiFirmwareFileSystem2Guid ## CONSUMES ## GUID # Used to compare with FV's file system guid and get the FV's file system format
Expand Down
6 changes: 6 additions & 0 deletions MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,12 @@ CoreExitBootServices (
{
EFI_STATUS Status;

//
// Notify other drivers of their last chance to use boot services
// before the memory map is terminated.
//
CoreNotifySignalList (&gEfiEventBeforeExitBootServicesGuid);

//
// Disable Timer
//
Expand Down

0 comments on commit 9d70d8f

Please sign in to comment.