]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Added Call for AfterReadyToBoot Event
authorRobert Phelps <robert@ami.com>
Wed, 21 Dec 2022 20:28:06 +0000 (04:28 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Feb 2023 12:34:20 +0000 (12:34 +0000)
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>
MdePkg/Library/UefiLib/UefiLib.inf
MdePkg/Library/UefiLib/UefiNotTiano.c

index 01ed92092da2ea7f7df52e58257b505e9299f836..3aced47d2e3e4768fce78ee516f76edbb5a54a5f 100644 (file)
@@ -56,6 +56,7 @@
 \r
 [Guids]\r
   gEfiEventReadyToBootGuid                      ## SOMETIMES_CONSUMES  ## Event\r
+  gEfiEventAfterReadyToBootGuid                 ## SOMETIMES_CONSUMES  ## Event\r
   gEfiEventLegacyBootGuid                       ## SOMETIMES_CONSUMES  ## Event\r
   gEfiGlobalVariableGuid                        ## SOMETIMES_CONSUMES  ## Variable\r
   gEfiAcpi20TableGuid                           ## SOMETIMES_CONSUMES  ## SystemTable\r
index d84e91fd0106bbdd861011b366e4c82157a1158a..8c8d9b29f8c876acbc3085244a43117e7c784ef1 100644 (file)
@@ -222,12 +222,26 @@ EfiSignalEventReadyToBoot (
 {\r
   EFI_STATUS  Status;\r
   EFI_EVENT   ReadyToBootEvent;\r
+  EFI_EVENT   AfterReadyToBootEvent;\r
 \r
   Status = EfiCreateEventReadyToBoot (&ReadyToBootEvent);\r
   if (!EFI_ERROR (Status)) {\r
     gBS->SignalEvent (ReadyToBootEvent);\r
     gBS->CloseEvent (ReadyToBootEvent);\r
   }\r
+\r
+  Status = gBS->CreateEventEx (\r
+                  EVT_NOTIFY_SIGNAL,\r
+                  TPL_CALLBACK,\r
+                  EfiEventEmptyFunction,\r
+                  NULL,\r
+                  &gEfiEventAfterReadyToBootGuid,\r
+                  &AfterReadyToBootEvent\r
+                  );\r
+  if (!EFI_ERROR (Status)) {\r
+    gBS->SignalEvent (AfterReadyToBootEvent);\r
+    gBS->CloseEvent (AfterReadyToBootEvent);\r
+  }\r
 }\r
 \r
 /**\r