* [PATCH v2 0/2] Added AfterReadyToBoot Event
@ 2023-01-12 20:07 Robert Phelps
2023-01-12 20:07 ` [PATCH v2 1/2] MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9 Robert Phelps
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Robert Phelps @ 2023-01-12 20:07 UTC (permalink / raw)
To: devel@edk2.groups.io
Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn,
zhiguang.liu@intel.com
In the UEFI Specification version 2.9 a new Event was added
AfterReadyToBoot. This set of patches creates the definitions
for the new event and adds the code to trigger this 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>
Robert Phelps (2):
MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9
MdePkg: Added Call for AfterReadyToBoot Event
MdePkg/Include/Guid/EventGroup.h | 5 +++++
MdePkg/Library/UefiLib/UefiLib.inf | 1 +
MdePkg/Library/UefiLib/UefiNotTiano.c | 14 ++++++++++++++
MdePkg/MdePkg.dec | 3 +++
4 files changed, 23 insertions(+)
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 1/2] MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9
2023-01-12 20:07 [PATCH v2 0/2] Added AfterReadyToBoot Event Robert Phelps
@ 2023-01-12 20:07 ` Robert Phelps
2023-01-12 20:07 ` [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event Robert Phelps
2023-01-29 6:10 ` 回复: [PATCH v2 0/2] Added " gaoliming
2 siblings, 0 replies; 4+ messages in thread
From: Robert Phelps @ 2023-01-12 20:07 UTC (permalink / raw)
To: devel@edk2.groups.io
Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn,
zhiguang.liu@intel.com
Add After Ready To Boot Event Definitions
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>
---
MdePkg/Include/Guid/EventGroup.h | 5 +++++
MdePkg/MdePkg.dec | 3 +++
2 files changed, 8 insertions(+)
diff --git a/MdePkg/Include/Guid/EventGroup.h b/MdePkg/Include/Guid/EventGroup.h
index 063d1f7157..a68b654e0a 100644
--- a/MdePkg/Include/Guid/EventGroup.h
+++ b/MdePkg/Include/Guid/EventGroup.h
@@ -29,6 +29,11 @@ extern EFI_GUID gEfiEventMemoryMapChangeGuid;
extern EFI_GUID gEfiEventReadyToBootGuid;
+#define EFI_EVENT_GROUP_AFTER_READY_TO_BOOT \
+ { 0x3a2a00ad, 0x98b9, 0x4cdf, { 0xa4, 0x78, 0x70, 0x27, 0x77, 0xf1, 0xc1, 0xb } }
+
+extern EFI_GUID gEfiEventAfterReadyToBootGuid;
+
#define EFI_EVENT_GROUP_DXE_DISPATCH_GUID \
{ 0x7081e22f, 0xcac6, 0x4053, { 0x94, 0x68, 0x67, 0x57, 0x82, 0xcf, 0x88, 0xe5 }}
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index e49b2d5b5f..0d6dfe8792 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -413,6 +413,9 @@
## Include/Guid/EventGroup.h
gEfiEventReadyToBootGuid = { 0x7CE88FB3, 0x4BD7, 0x4679, { 0x87, 0xA8, 0xA8, 0xD8, 0xDE, 0xE5, 0x0D, 0x2B }}
+ ## Include/Guid/EventGroup.h
+ gEfiEventAfterReadyToBootGuid = { 0x7081e22f, 0xcac6, 0x4053, { 0x94, 0x68, 0x67, 0x57, 0x82, 0xcf, 0x88, 0xe5 }}
+
## Include/Guid/EventGroup.h
gEfiEventMemoryMapChangeGuid = { 0x78BEE926, 0x692F, 0x48FD, { 0x9E, 0xDB, 0x01, 0x42, 0x2E, 0xF0, 0xD7, 0xAB }}
--
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.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event
2023-01-12 20:07 [PATCH v2 0/2] Added AfterReadyToBoot Event Robert Phelps
2023-01-12 20:07 ` [PATCH v2 1/2] MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9 Robert Phelps
@ 2023-01-12 20:07 ` Robert Phelps
2023-01-29 6:10 ` 回复: [PATCH v2 0/2] Added " gaoliming
2 siblings, 0 replies; 4+ messages in thread
From: Robert Phelps @ 2023-01-12 20:07 UTC (permalink / raw)
To: devel@edk2.groups.io
Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn,
zhiguang.liu@intel.com
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>
---
MdePkg/Library/UefiLib/UefiLib.inf | 1 +
MdePkg/Library/UefiLib/UefiNotTiano.c | 14 ++++++++++++++
2 files changed, 15 insertions(+)
diff --git a/MdePkg/Library/UefiLib/UefiLib.inf b/MdePkg/Library/UefiLib/UefiLib.inf
index 01ed92092d..3aced47d2e 100644
--- a/MdePkg/Library/UefiLib/UefiLib.inf
+++ b/MdePkg/Library/UefiLib/UefiLib.inf
@@ -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
diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib/UefiNotTiano.c
index d84e91fd01..f8f7406f3a 100644
--- a/MdePkg/Library/UefiLib/UefiNotTiano.c
+++ b/MdePkg/Library/UefiLib/UefiNotTiano.c
@@ -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);
+ }
}
/**
--
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.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* 回复: [PATCH v2 0/2] Added AfterReadyToBoot Event
2023-01-12 20:07 [PATCH v2 0/2] Added AfterReadyToBoot Event Robert Phelps
2023-01-12 20:07 ` [PATCH v2 1/2] MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9 Robert Phelps
2023-01-12 20:07 ` [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event Robert Phelps
@ 2023-01-29 6:10 ` gaoliming
2 siblings, 0 replies; 4+ messages in thread
From: gaoliming @ 2023-01-29 6:10 UTC (permalink / raw)
To: 'Robert Phelps', devel
Cc: michael.d.kinney, zhiguang.liu, dionnaglaze
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
> -----邮件原件-----
> 发件人: Robert Phelps <Robert@ami.com>
> 发送时间: 2023年1月13日 4:07
> 收件人: devel@edk2.groups.io
> 抄送: michael.d.kinney@intel.com; gaoliming@byosoft.com.cn;
> zhiguang.liu@intel.com
> 主题: [PATCH v2 0/2] Added AfterReadyToBoot Event
>
> In the UEFI Specification version 2.9 a new Event was added
> AfterReadyToBoot. This set of patches creates the definitions
> for the new event and adds the code to trigger this 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>
>
> Robert Phelps (2):
> MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9
> MdePkg: Added Call for AfterReadyToBoot Event
>
> MdePkg/Include/Guid/EventGroup.h | 5 +++++
> MdePkg/Library/UefiLib/UefiLib.inf | 1 +
> MdePkg/Library/UefiLib/UefiNotTiano.c | 14 ++++++++++++++
> MdePkg/MdePkg.dec | 3 +++
> 4 files changed, 23 insertions(+)
>
> --
> 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=
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-01-29 6:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 20:07 [PATCH v2 0/2] Added AfterReadyToBoot Event Robert Phelps
2023-01-12 20:07 ` [PATCH v2 1/2] MdePkg: Add After Ready To Boot Event Definition from UEFI 2.9 Robert Phelps
2023-01-12 20:07 ` [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event Robert Phelps
2023-01-29 6:10 ` 回复: [PATCH v2 0/2] Added " gaoliming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox