]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices
authorDionna Glaze <dionnaglaze@google.com>
Tue, 8 Nov 2022 16:46:16 +0000 (16:46 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 12 Jan 2023 16:03:30 +0000 (16:03 +0000)
Location of notification is has been specified in UEFI v2.9.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: "Min M. Xu" <min.m.xu@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: "Michael D. Kinney" <michael.d.kinney@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Message-Id: <20221108164616.3251967-4-dionnaglaze@google.com>

MdeModulePkg/Core/Dxe/DxeMain.inf
MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c

index e4bca895773d957a1900f3d7c634c1759654ffee..35d5bf0dee6f7f3f0681927c265f997fd3b651f8 100644 (file)
   gEfiEventVirtualAddressChangeGuid             ## CONSUMES             ## Event\r
   ## CONSUMES   ## Event\r
   ## PRODUCES   ## Event\r
+  gEfiEventBeforeExitBootServicesGuid\r
   gEfiEventExitBootServicesGuid\r
   gEfiHobMemoryAllocModuleGuid                  ## SOMETIMES_CONSUMES   ## HOB\r
   gEfiFirmwareFileSystem2Guid                   ## CONSUMES             ## GUID # Used to compare with FV's file system guid and get the FV's file system format\r
index 5733f0c8ec84b4fad5442b3e90648c67a91e4386..4683016ed758494d66f887ac6d5f48479554b855 100644 (file)
@@ -763,6 +763,12 @@ CoreExitBootServices (
 {\r
   EFI_STATUS  Status;\r
 \r
+  //\r
+  // Notify other drivers of their last chance to use boot services\r
+  // before the memory map is terminated.\r
+  //\r
+  CoreNotifySignalList (&gEfiEventBeforeExitBootServicesGuid);\r
+\r
   //\r
   // Disable Timer\r
   //\r