From 57a31578d374da211893541d236890850529e478 Mon Sep 17 00:00:00 2001 From: jji4 Date: Tue, 3 Feb 2009 08:50:03 +0000 Subject: [PATCH] use the GUIDed versions of events listed in all of our module/lib implementations: EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and EVT_SIGNAL_EXIT_BOOT_SERVICES git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7418 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | 10 ++++++---- MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h | 2 +- MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf | 5 ++++- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c index 3205d57bc0..707ec5d050 100644 --- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c +++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c @@ -94,21 +94,23 @@ RuntimeDriverLibConstruct ( // // Register SetVirtualAddressMap () notify function // - Status = gBS->CreateEvent ( - EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, + Status = gBS->CreateEventEx ( + EVT_NOTIFY_SIGNAL, TPL_NOTIFY, RuntimeLibVirtualNotifyEvent, NULL, + &gEfiEventVirtualAddressChangeGuid, &mEfiVirtualNotifyEvent ); ASSERT_EFI_ERROR (Status); - Status = gBS->CreateEvent ( - EVT_SIGNAL_EXIT_BOOT_SERVICES, + Status = gBS->CreateEventEx ( + EVT_NOTIFY_SIGNAL, TPL_NOTIFY, RuntimeLibExitBootServicesEvent, NULL, + &gEfiEventExitBootServicesGuid, &mEfiExitBootServicesEvent ); diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h index 1e3ab9435a..3d62dd81b8 100644 --- a/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h +++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLibInternal.h @@ -20,7 +20,7 @@ #include #include #include - +#include extern EFI_RUNTIME_SERVICES *mRT; #endif diff --git a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf index 2cd6d1b5bf..3b3247d87e 100644 --- a/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf +++ b/MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf @@ -45,5 +45,8 @@ UefiBootServicesTableLib UefiRuntimeServicesTableLib DebugLib - + +[Guids] + gEfiEventExitBootServicesGuid ## PRODUCES ## Event + gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event