summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiDebugLibConOut
diff options
context:
space:
mode:
authorVitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io>2020-01-07 18:50:32 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-01-10 03:25:59 +0000
commitdf851da3ceff5b6bcf5e12616f6af60812aab483 (patch)
treec80a6b2adc0b2b59723c450a0a95c410b184176b /MdePkg/Library/UefiDebugLibConOut
parente18792566c7fb1335e705c3b19334db9271eac90 (diff)
downloadedk2-df851da3ceff5b6bcf5e12616f6af60812aab483.tar.gz
edk2-df851da3ceff5b6bcf5e12616f6af60812aab483.tar.bz2
edk2-df851da3ceff5b6bcf5e12616f6af60812aab483.zip
MdePkg: Do not use CreateEventEx unless required
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2446 There are many firmwares in the wild not supporting CreateEventEx, including devices less than 5 years old. Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/UefiDebugLibConOut')
-rw-r--r--MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c5
-rw-r--r--MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf3
2 files changed, 2 insertions, 6 deletions
diff --git a/MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c
index ed73f92818..b4ac17cf55 100644
--- a/MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c
+++ b/MdePkg/Library/UefiDebugLibConOut/DebugLibConstructor.c
@@ -64,12 +64,11 @@ DxeDebugLibConstructor(
{
mDebugST = SystemTable;
- SystemTable->BootServices->CreateEventEx (
- EVT_NOTIFY_SIGNAL,
+ SystemTable->BootServices->CreateEvent (
+ EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY,
ExitBootServicesCallback,
NULL,
- &gEfiEventExitBootServicesGuid,
&mExitBootServicesEvent
);
diff --git a/MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf b/MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
index b577d52ac6..53bbc8ce3f 100644
--- a/MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
+++ b/MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
@@ -46,9 +46,6 @@
PrintLib
DebugPrintErrorLevelLib
-[Guids]
- gEfiEventExitBootServicesGuid ## CONSUMES
-
[Pcd]
gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue ## SOMETIMES_CONSUMES
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask ## CONSUMES