public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Robert Phelps" <robert@ami.com>
To: "devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "michael.d.kinney@intel.com" <michael.d.kinney@intel.com>,
	"gaoliming@byosoft.com.cn" <gaoliming@byosoft.com.cn>,
	"zhiguang.liu@intel.com" <zhiguang.liu@intel.com>,
	"dandan.bi@intel.com" <dandan.bi@intel.com>
Subject: [PATCH 2/2] MdeModulePkg: Added call to signal New Event
Date: Tue, 8 Nov 2022 20:28:28 +0000	[thread overview]
Message-ID: <20221108202815.1487-3-robert@ami.com> (raw)
In-Reply-To: <20221108202815.1487-1-robert@ami.com>

This code signals the Before Exit Boot Services event at the beginning
of the ExitBootServices() function.  This gives all the rest of the
code to prepare for the ExitBootServices event.

Cc: Dandan Bi <dandan.bi@intel.com> [dandanbi]
Cc: Liming Gao <gaoliming@byosoft.com.cn> [lgao4]

Signed-off-by: Robert Phelps <robert@ami.com>
---
 MdeModulePkg/Core/Dxe/DxeMain.inf       | 1 +
 MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/MdeModulePkg/Core/Dxe/DxeMain.inf b/MdeModulePkg/Core/Dxe/DxeMain.inf
index e4bca89577..346bfa7e89 100644
--- a/MdeModulePkg/Core/Dxe/DxeMain.inf
+++ b/MdeModulePkg/Core/Dxe/DxeMain.inf
@@ -122,6 +122,7 @@
   gEfiMemoryAttributesTableGuid                 ## SOMETIMES_PRODUCES   ## SystemTable
   gEfiEndOfDxeEventGroupGuid                    ## SOMETIMES_CONSUMES   ## Event
   gEfiHobMemoryAllocStackGuid                   ## SOMETIMES_CONSUMES   ## SystemTable
+  gEfiEventBeforeExitBootServicesGuid           ## PRODUCES   ## Event

 [Ppis]
   gEfiVectorHandoffInfoPpiGuid                  ## UNDEFINED # HOB
diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
index 5733f0c8ec..1417f0eaa8 100644
--- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
+++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c
@@ -763,6 +763,8 @@ CoreExitBootServices (
 {
   EFI_STATUS  Status;

+  // Before-exit-boot-services event
+  CoreNotifySignalList (&gEfiEventBeforeExitBootServicesGuid);
   //
   // Disable Timer
   //
--
2.36.1.windows.1
-The information contained in this message may be confidential and proprietary to American Megatrends (AMI). This communication is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. Please promptly notify the sender by reply e-mail or by telephone at 770-246-8600, and then delete or destroy all copies of the transmission.

  parent reply	other threads:[~2022-11-08 20:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 20:28 [edk2][PATCH 0/2] Add Events introduced in UEFI 2.9 Robert Phelps
2022-11-08 20:28 ` [PATCH 1/2] MdePkg: Add New Event Definitions from " Robert Phelps
2022-11-08 20:28 ` Robert Phelps [this message]
2022-11-08 23:42   ` [edk2-devel] [PATCH 2/2] MdeModulePkg: Added call to signal New Event Dionna Glaze
2022-11-09 15:49     ` Robert Phelps
2022-11-09 16:21       ` Dionna Glaze
2022-11-09 16:52         ` Michael D Kinney
2022-11-09 16:58           ` Dionna Glaze
2022-11-09 17:31             ` Robert Phelps
2022-11-09 18:01               ` Dionna Glaze
2022-11-08 22:44 ` [edk2][PATCH 0/2] Add Events introduced in UEFI 2.9 Michael D Kinney
2022-11-09 16:10   ` [edk2-devel] " Robert Phelps
2022-12-07  1:08   ` 回复: " gaoliming
2022-12-14 17:49     ` Robert Phelps
2022-12-21  1:16       ` 回复: [edk2-devel] " gaoliming
2023-01-11 19:11         ` [edk2-devel] " Robert Phelps
2023-01-11 21:16           ` Michael D Kinney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221108202815.1487-3-robert@ami.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox