use the GUIDed versions of events: EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and EVT_SIGNAL_EXIT_BOOT_SERVICES
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7424 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -27,6 +27,7 @@
|
||||
#include <Library/DevicePathLib.h>
|
||||
|
||||
#include <Guid/StatusCodeDataTypeId.h>
|
||||
#include <Guid/EventGroup.h>
|
||||
#include <Protocol/StatusCode.h>
|
||||
|
||||
#include <FrameworkModuleBase.h>
|
||||
|
@ -56,6 +56,8 @@
|
||||
[Guids]
|
||||
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
||||
gEfiStatusCodeDataTypeDebugGuid # ALWAYS_CONSUMED
|
||||
gEfiEventExitBootServicesGuid
|
||||
gEfiEventVirtualAddressChangeGuid
|
||||
|
||||
|
||||
[Protocols]
|
||||
|
@ -158,11 +158,12 @@ ReportStatusCodeLibConstruct (
|
||||
//
|
||||
// Register the call back of virtual address change
|
||||
//
|
||||
Status = gBS->CreateEvent (
|
||||
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
||||
Status = gBS->CreateEventEx (
|
||||
EVT_NOTIFY_SIGNAL,
|
||||
TPL_NOTIFY,
|
||||
ReportStatusCodeLibVirtualAddressChange,
|
||||
NULL,
|
||||
&gEfiEventVirtualAddressChangeGuid,
|
||||
&mVirtualAddressChangeEvent
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
@ -171,11 +172,12 @@ ReportStatusCodeLibConstruct (
|
||||
//
|
||||
// Register the call back of virtual address change
|
||||
//
|
||||
Status = gBS->CreateEvent (
|
||||
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
||||
Status = gBS->CreateEventEx (
|
||||
EVT_NOTIFY_SIGNAL,
|
||||
TPL_NOTIFY,
|
||||
ReportStatusCodeLibExitBootServices,
|
||||
NULL,
|
||||
&gEfiEventExitBootServicesGuid,
|
||||
&mExitBootServicesEvent
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
Reference in New Issue
Block a user