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/UefiDebugLibDebugPortProtocol | |
parent | e18792566c7fb1335e705c3b19334db9271eac90 (diff) | |
download | edk2-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/UefiDebugLibDebugPortProtocol')
-rw-r--r-- | MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c | 5 | ||||
-rw-r--r-- | MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c index 6ea0912f2b..96fc1c422f 100644 --- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c +++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/DebugLibConstructor.c @@ -64,12 +64,11 @@ DxeDebugLibConstructor( {
mDebugBS = SystemTable->BootServices;
- mDebugBS->CreateEventEx (
- EVT_NOTIFY_SIGNAL,
+ mDebugBS->CreateEvent (
+ EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY,
ExitBootServicesCallback,
NULL,
- &gEfiEventExitBootServicesGuid,
&mExitBootServicesEvent
);
diff --git a/MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf b/MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf index ff09a12ce4..e12a1025c6 100644 --- a/MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf +++ b/MdePkg/Library/UefiDebugLibDebugPortProtocol/UefiDebugLibDebugPortProtocol.inf @@ -46,9 +46,6 @@ PrintLib
DebugPrintErrorLevelLib
-[Guids]
- gEfiEventExitBootServicesGuid ## CONSUMES
-
[Protocols]
gEfiDebugPortProtocolGuid ## CONSUMES
|