mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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
This commit is contained in:
parent
6e4bac4dac
commit
57a31578d3
@ -94,21 +94,23 @@ RuntimeDriverLibConstruct (
|
|||||||
//
|
//
|
||||||
// Register SetVirtualAddressMap () notify function
|
// Register SetVirtualAddressMap () notify function
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
RuntimeLibVirtualNotifyEvent,
|
RuntimeLibVirtualNotifyEvent,
|
||||||
NULL,
|
NULL,
|
||||||
|
&gEfiEventVirtualAddressChangeGuid,
|
||||||
&mEfiVirtualNotifyEvent
|
&mEfiVirtualNotifyEvent
|
||||||
);
|
);
|
||||||
|
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
RuntimeLibExitBootServicesEvent,
|
RuntimeLibExitBootServicesEvent,
|
||||||
NULL,
|
NULL,
|
||||||
|
&gEfiEventExitBootServicesGuid,
|
||||||
&mEfiExitBootServicesEvent
|
&mEfiExitBootServicesEvent
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
#include <Library/UefiBootServicesTableLib.h>
|
#include <Library/UefiBootServicesTableLib.h>
|
||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
|
#include <Guid/EventGroup.h>
|
||||||
extern EFI_RUNTIME_SERVICES *mRT;
|
extern EFI_RUNTIME_SERVICES *mRT;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -46,4 +46,7 @@
|
|||||||
UefiRuntimeServicesTableLib
|
UefiRuntimeServicesTableLib
|
||||||
DebugLib
|
DebugLib
|
||||||
|
|
||||||
|
[Guids]
|
||||||
|
gEfiEventExitBootServicesGuid ## PRODUCES ## Event
|
||||||
|
gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user