]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PciSegmentLibSegmentInfo/DxeRuntimePciSegmentLib.c
MdePkg: Do not use CreateEventEx unless required
[mirror_edk2.git] / MdePkg / Library / PciSegmentLibSegmentInfo / DxeRuntimePciSegmentLib.c
index 2f503ecffe057430c88d0a9f7e548ffbdd1dc7aa..b0dbdec0cf85590e2e6c6af96a0e505ce8dbca55 100644 (file)
@@ -109,12 +109,11 @@ DxeRuntimePciSegmentLibConstructor (
   //\r
   // Register SetVirtualAddressMap () notify function\r
   //\r
-  Status = gBS->CreateEventEx (\r
-                  EVT_NOTIFY_SIGNAL,\r
+  Status = gBS->CreateEvent (\r
+                  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
                   TPL_NOTIFY,\r
                   DxeRuntimePciSegmentLibVirtualNotify,\r
                   NULL,\r
-                  &gEfiEventVirtualAddressChangeGuid,\r
                   &mDxeRuntimePciSegmentLibVirtualNotifyEvent\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r