summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiRuntimeLib
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/UefiRuntimeLib
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/UefiRuntimeLib')
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c10
-rw-r--r--MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf5
2 files changed, 4 insertions, 11 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
index 933e0099ce..a2eadafac8 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
@@ -93,23 +93,21 @@ RuntimeDriverLibConstruct (
//
// Register SetVirtualAddressMap () notify function
//
- Status = gBS->CreateEventEx (
- EVT_NOTIFY_SIGNAL,
+ Status = gBS->CreateEvent (
+ EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
TPL_NOTIFY,
RuntimeLibVirtualNotifyEvent,
NULL,
- &gEfiEventVirtualAddressChangeGuid,
&mEfiVirtualNotifyEvent
);
ASSERT_EFI_ERROR (Status);
- Status = gBS->CreateEventEx (
- EVT_NOTIFY_SIGNAL,
+ Status = gBS->CreateEvent (
+ EVT_SIGNAL_EXIT_BOOT_SERVICES,
TPL_NOTIFY,
RuntimeLibExitBootServicesEvent,
NULL,
- &gEfiEventExitBootServicesGuid,
&mEfiExitBootServicesEvent
);
diff --git a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
index 5527f9f02f..cc4ee15110 100644
--- a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
+++ b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
@@ -39,8 +39,3 @@
UefiBootServicesTableLib
UefiRuntimeServicesTableLib
DebugLib
-
-[Guids]
- gEfiEventExitBootServicesGuid ## CONSUMES ## Event
- gEfiEventVirtualAddressChangeGuid ## CONSUMES ## Event
-