mirror of https://github.com/acidanthera/audk.git
MdePkg: Added Call for AfterReadyToBoot Event
In the function EfiSignalEventReadyToBoot, Code was added to also create, signal, and close the AfterReadyToBoot event. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Signed-off-by: Robert Phelps <robert@ami.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
parent
419c0aafa6
commit
38da9606f7
|
@ -56,6 +56,7 @@
|
|||
|
||||
[Guids]
|
||||
gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||
gEfiEventAfterReadyToBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||
gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||
gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable
|
||||
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
|
||||
|
|
|
@ -222,12 +222,26 @@ EfiSignalEventReadyToBoot (
|
|||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_EVENT ReadyToBootEvent;
|
||||
EFI_EVENT AfterReadyToBootEvent;
|
||||
|
||||
Status = EfiCreateEventReadyToBoot (&ReadyToBootEvent);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
gBS->SignalEvent (ReadyToBootEvent);
|
||||
gBS->CloseEvent (ReadyToBootEvent);
|
||||
}
|
||||
|
||||
Status = gBS->CreateEventEx (
|
||||
EVT_NOTIFY_SIGNAL,
|
||||
TPL_CALLBACK,
|
||||
EfiEventEmptyFunction,
|
||||
NULL,
|
||||
&gEfiEventAfterReadyToBootGuid,
|
||||
&AfterReadyToBootEvent
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
gBS->SignalEvent (AfterReadyToBootEvent);
|
||||
gBS->CloseEvent (AfterReadyToBootEvent);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue