mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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]
|
[Guids]
|
||||||
gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## Event
|
gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||||
|
gEfiEventAfterReadyToBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||||
gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event
|
gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## Event
|
||||||
gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable
|
gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## Variable
|
||||||
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
|
gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## SystemTable
|
||||||
|
@ -222,12 +222,26 @@ EfiSignalEventReadyToBoot (
|
|||||||
{
|
{
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
EFI_EVENT ReadyToBootEvent;
|
EFI_EVENT ReadyToBootEvent;
|
||||||
|
EFI_EVENT AfterReadyToBootEvent;
|
||||||
|
|
||||||
Status = EfiCreateEventReadyToBoot (&ReadyToBootEvent);
|
Status = EfiCreateEventReadyToBoot (&ReadyToBootEvent);
|
||||||
if (!EFI_ERROR (Status)) {
|
if (!EFI_ERROR (Status)) {
|
||||||
gBS->SignalEvent (ReadyToBootEvent);
|
gBS->SignalEvent (ReadyToBootEvent);
|
||||||
gBS->CloseEvent (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…
x
Reference in New Issue
Block a user