diff options
author | Vitaly Cheptsov via Groups.Io <vit9696=protonmail.com@groups.io> | 2020-01-07 18:50:32 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-01-10 03:25:59 +0000 |
commit | df851da3ceff5b6bcf5e12616f6af60812aab483 (patch) | |
tree | c80a6b2adc0b2b59723c450a0a95c410b184176b /MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c | |
parent | e18792566c7fb1335e705c3b19334db9271eac90 (diff) | |
download | edk2-df851da3ceff5b6bcf5e12616f6af60812aab483.zip edk2-df851da3ceff5b6bcf5e12616f6af60812aab483.tar.gz edk2-df851da3ceff5b6bcf5e12616f6af60812aab483.tar.bz2 |
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/UefiDebugLibStdErr/DebugLibConstructor.c')
-rw-r--r-- | MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c index ed73f92..b4ac17c 100644 --- a/MdePkg/Library/UefiDebugLibStdErr/DebugLibConstructor.c +++ b/MdePkg/Library/UefiDebugLibStdErr/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
);
|