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:
@ -730,11 +730,12 @@ IDEBusDriverBindingStart (
|
|||||||
//
|
//
|
||||||
// Create event to clear pending IDE interrupt
|
// Create event to clear pending IDE interrupt
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ClearInterrupt,
|
ClearInterrupt,
|
||||||
IdeBlkIoDevicePtr,
|
IdeBlkIoDevicePtr,
|
||||||
|
&gEfiEventExitBootServicesGuid,
|
||||||
&IdeBlkIoDevicePtr->ExitBootServiceEvent
|
&IdeBlkIoDevicePtr->ExitBootServiceEvent
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@
|
|||||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||||
#include <Library/DevicePathLib.h>
|
#include <Library/DevicePathLib.h>
|
||||||
|
|
||||||
|
#include <Guid/EventGroup.h>
|
||||||
|
|
||||||
#include <IndustryStandard/Pci22.h>
|
#include <IndustryStandard/Pci22.h>
|
||||||
#include "IdeData.h"
|
#include "IdeData.h"
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gEfiDiskInfoIdeInterfaceGuid # SOMETIMES_CONSUMED
|
gEfiDiskInfoIdeInterfaceGuid # SOMETIMES_CONSUMED
|
||||||
|
gEfiEventExitBootServicesGuid
|
||||||
|
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
#include <Library/DevicePathLib.h>
|
#include <Library/DevicePathLib.h>
|
||||||
|
|
||||||
#include <Guid/StatusCodeDataTypeId.h>
|
#include <Guid/StatusCodeDataTypeId.h>
|
||||||
|
#include <Guid/EventGroup.h>
|
||||||
#include <Protocol/StatusCode.h>
|
#include <Protocol/StatusCode.h>
|
||||||
|
|
||||||
#include <FrameworkModuleBase.h>
|
#include <FrameworkModuleBase.h>
|
||||||
|
@ -56,6 +56,8 @@
|
|||||||
[Guids]
|
[Guids]
|
||||||
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
gEfiStatusCodeSpecificDataGuid # ALWAYS_CONSUMED
|
||||||
gEfiStatusCodeDataTypeDebugGuid # ALWAYS_CONSUMED
|
gEfiStatusCodeDataTypeDebugGuid # ALWAYS_CONSUMED
|
||||||
|
gEfiEventExitBootServicesGuid
|
||||||
|
gEfiEventVirtualAddressChangeGuid
|
||||||
|
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
|
@ -158,11 +158,12 @@ ReportStatusCodeLibConstruct (
|
|||||||
//
|
//
|
||||||
// Register the call back of virtual address change
|
// Register the call back of virtual address change
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ReportStatusCodeLibVirtualAddressChange,
|
ReportStatusCodeLibVirtualAddressChange,
|
||||||
NULL,
|
NULL,
|
||||||
|
&gEfiEventVirtualAddressChangeGuid,
|
||||||
&mVirtualAddressChangeEvent
|
&mVirtualAddressChangeEvent
|
||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
@ -171,11 +172,12 @@ ReportStatusCodeLibConstruct (
|
|||||||
//
|
//
|
||||||
// Register the call back of virtual address change
|
// Register the call back of virtual address change
|
||||||
//
|
//
|
||||||
Status = gBS->CreateEvent (
|
Status = gBS->CreateEventEx (
|
||||||
EVT_SIGNAL_EXIT_BOOT_SERVICES,
|
EVT_NOTIFY_SIGNAL,
|
||||||
TPL_NOTIFY,
|
TPL_NOTIFY,
|
||||||
ReportStatusCodeLibExitBootServices,
|
ReportStatusCodeLibExitBootServices,
|
||||||
NULL,
|
NULL,
|
||||||
|
&gEfiEventExitBootServicesGuid,
|
||||||
&mExitBootServicesEvent
|
&mExitBootServicesEvent
|
||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include <Guid/MemoryStatusCodeRecord.h>
|
#include <Guid/MemoryStatusCodeRecord.h>
|
||||||
#include <Protocol/StatusCode.h>
|
#include <Protocol/StatusCode.h>
|
||||||
#include <Guid/StatusCodeDataTypeId.h>
|
#include <Guid/StatusCodeDataTypeId.h>
|
||||||
|
#include <Guid/EventGroup.h>
|
||||||
|
|
||||||
#include <Library/BaseLib.h>
|
#include <Library/BaseLib.h>
|
||||||
#include <Library/SynchronizationLib.h>
|
#include <Library/SynchronizationLib.h>
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
gEfiDataHubStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
||||||
gMemoryStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
gMemoryStatusCodeRecordGuid # SOMETIMES_CONSUMED
|
||||||
gEfiStatusCodeDataTypeDebugGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiStatusCodeDataTypeDebugGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
|
gEfiEventExitBootServicesGuid
|
||||||
|
|
||||||
[Protocols]
|
[Protocols]
|
||||||
gEfiStatusCodeRuntimeProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
gEfiStatusCodeRuntimeProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||||
|
@ -110,11 +110,12 @@ DxeStatusCodeDriverEntry (
|
|||||||
);
|
);
|
||||||
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,
|
||||||
VirtualAddressChangeCallBack,
|
VirtualAddressChangeCallBack,
|
||||||
NULL,
|
NULL,
|
||||||
|
&gEfiEventExitBootServicesGuid,
|
||||||
&mExitBootServicesEvent
|
&mExitBootServicesEvent
|
||||||
);
|
);
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
Reference in New Issue
Block a user