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>
This commit is contained in:
Vitaly Cheptsov via Groups.Io
2020-01-07 18:50:32 +08:00
committed by mergify[bot]
parent e18792566c
commit df851da3ce
14 changed files with 15 additions and 47 deletions

View File

@@ -77,9 +77,8 @@ DxeRuntimeDebugLibSerialPortConstructor (
return Status;
}
return SystemTable->BootServices->CreateEventEx (EVT_NOTIFY_SIGNAL,
return SystemTable->BootServices->CreateEvent (EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY, ExitBootServicesEvent, NULL,
&gEfiEventExitBootServicesGuid,
&mEfiExitBootServicesEvent);
}