Skip to content

Commit

Permalink
gMuEventPreExitBootServicesGuid has been depreciated in favor of the …
Browse files Browse the repository at this point in the history
…EDK2 standard gEfiEventBeforeExitBootServicesGuid.

gEfiEventBeforeExitBootServicesGuid can be signed multiple times, when gMuEventPreExitBootServicesGuid was only signaled once.
As part of adopting gEfiEventBeforeExitBootServicesGuid, events that relied on PreExitBootServices were modified to close the event.
  • Loading branch information
apop5 committed Jul 25, 2024
1 parent cc6c823 commit 46218e4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion MsGraphicsPkg/OnScreenKeyboardDxe/OnScreenKeyboardDriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,7 @@ OnPreExitBootServicesNotification (
{
ShowKeyboardIcon (FALSE);
ShowKeyboard (FALSE);
gBS->CloseEvent (Event);
}

EFI_STATUS
Expand Down Expand Up @@ -3394,7 +3395,7 @@ OSKDriverEntryPoint (
TPL_CALLBACK,
OnPreExitBootServicesNotification,
gImageHandle,
&gMuEventPreExitBootServicesGuid,
&gEfiEventBeforeExitBootServicesGuid,
&InitEvent
);

Expand Down
2 changes: 1 addition & 1 deletion MsGraphicsPkg/OnScreenKeyboardDxe/OnScreenKeyboardDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
[Guids]
gEfiConsoleInDeviceGuid
gOSKDevicePathGuid
gMuEventPreExitBootServicesGuid
gEfiEventBeforeExitBootServicesGuid


[Protocols]
Expand Down
3 changes: 2 additions & 1 deletion MsGraphicsPkg/RenderingEngineDxe/RenderingEngine.c
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,7 @@ OnPreExitBootServicesNotification (
)
{
mPreExitBootServices = TRUE;
gBS->CloseEvent (Event);
}

/**
Expand Down Expand Up @@ -1527,7 +1528,7 @@ DriverInit (
TPL_NOTIFY,
OnPreExitBootServicesNotification,
gImageHandle,
&gMuEventPreExitBootServicesGuid,
&gEfiEventBeforeExitBootServicesGuid,
&InitEvent
);

Expand Down
2 changes: 1 addition & 1 deletion MsGraphicsPkg/RenderingEngineDxe/RenderingEngineDxe.inf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
gEfiGraphicsOutputProtocolGuid # PRODUCES

[Guids]
gMuEventPreExitBootServicesGuid
gEfiEventBeforeExitBootServicesGuid

[Pcd]
gMsGraphicsPkgTokenSpaceGuid.PcdMsGopOverrideProtocolGuid
Expand Down

0 comments on commit 46218e4

Please sign in to comment.