git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7418
6f19259b-4bc3-4df7-8a09-
765794883524
//\r
// Register SetVirtualAddressMap () notify function\r
//\r
//\r
// Register SetVirtualAddressMap () notify function\r
//\r
- Status = gBS->CreateEvent (\r
- EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+ Status = gBS->CreateEventEx (\r
+ EVT_NOTIFY_SIGNAL,\r
TPL_NOTIFY,\r
RuntimeLibVirtualNotifyEvent,\r
NULL,\r
TPL_NOTIFY,\r
RuntimeLibVirtualNotifyEvent,\r
NULL,\r
+ &gEfiEventVirtualAddressChangeGuid,\r
&mEfiVirtualNotifyEvent\r
);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
&mEfiVirtualNotifyEvent\r
);\r
\r
ASSERT_EFI_ERROR (Status);\r
\r
- Status = gBS->CreateEvent (\r
- EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+ Status = gBS->CreateEventEx (\r
+ EVT_NOTIFY_SIGNAL,\r
TPL_NOTIFY,\r
RuntimeLibExitBootServicesEvent,\r
NULL,\r
TPL_NOTIFY,\r
RuntimeLibExitBootServicesEvent,\r
NULL,\r
+ &gEfiEventExitBootServicesGuid,\r
&mEfiExitBootServicesEvent\r
);\r
\r
&mEfiExitBootServicesEvent\r
);\r
\r
#include <Library/DebugLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
+#include <Guid/EventGroup.h>\r
extern EFI_RUNTIME_SERVICES *mRT;\r
\r
#endif \r
extern EFI_RUNTIME_SERVICES *mRT;\r
\r
#endif \r
UefiBootServicesTableLib\r
UefiRuntimeServicesTableLib\r
DebugLib\r
UefiBootServicesTableLib\r
UefiRuntimeServicesTableLib\r
DebugLib\r
+ \r
+[Guids]\r
+ gEfiEventExitBootServicesGuid ## PRODUCES ## Event\r
+ gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event\r