use the GUIDed versions of events listed below: EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE and EVT_SIGNAL_EXIT_BOOT_SERVICES

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7420 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jji4 2009-02-03 11:09:53 +00:00
parent 3d7decbc4f
commit 01a5c99447
14 changed files with 40 additions and 12 deletions

View File

@ -1031,20 +1031,22 @@ InitializeUndi(
); );
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,
UndiNotifyExitBs, UndiNotifyExitBs,
NULL, NULL,
&gEfiEventExitBootServicesGuid,
&Event &Event
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
Status = gBS->CreateEvent ( Status = gBS->CreateEventEx (
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, EVT_NOTIFY_SIGNAL,
TPL_NOTIFY, TPL_NOTIFY,
UndiNotifyVirtual, UndiNotifyVirtual,
NULL, NULL,
&gEfiEventVirtualAddressChangeGuid,
&Event &Event
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);

View File

@ -52,6 +52,10 @@
gEfiPciIoProtocolGuid gEfiPciIoProtocolGuid
gEfiDevicePathProtocolGuid gEfiDevicePathProtocolGuid
[Guids]
gEfiEventExitBootServicesGuid ## PRODUCES ## Event
gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event
[Depex] [Depex]
gEfiBdsArchProtocolGuid AND gEfiBdsArchProtocolGuid AND
gEfiCpuArchProtocolGuid AND gEfiCpuArchProtocolGuid AND

View File

@ -53,3 +53,6 @@
gEfiFirmwareVolumeBlockProtocolGuid ## NOTIFY gEfiFirmwareVolumeBlockProtocolGuid ## NOTIFY
gEfiFvbExtensionProtocolGuid ## CONSUMES gEfiFvbExtensionProtocolGuid ## CONSUMES
[Guids]
gEfiEventVirtualAddressChangeGuid ## PRODUCES

View File

@ -298,11 +298,12 @@ FvbLibInitialize (
// //
// 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,
FvbVirtualAddressChangeNotifyEvent, FvbVirtualAddressChangeNotifyEvent,
NULL, NULL,
&gEfiEventVirtualAddressChangeGuid,
&mSetVirtualMapChangedEvent &mSetVirtualMapChangedEvent
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);

View File

@ -33,6 +33,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h> #include <Library/UefiBootServicesTableLib.h>
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Guid/EventGroup.h>
#define MAX_FVB_COUNT 16 #define MAX_FVB_COUNT 16
typedef struct { typedef struct {

View File

@ -94,3 +94,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
gEfiAcpiSupportProtocolGuid gEfiAcpiSupportProtocolGuid
gEfiDhcp4ProtocolGuid gEfiDhcp4ProtocolGuid
gEfiDhcp4ServiceBindingProtocolGuid gEfiDhcp4ServiceBindingProtocolGuid
[Guids]
gEfiEventExitBootServicesGuid

View File

@ -20,6 +20,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/NetLib.h> #include <Library/NetLib.h>
#include <Library/PrintLib.h> #include <Library/PrintLib.h>
#include <Library/UefiRuntimeServicesTableLib.h> #include <Library/UefiRuntimeServicesTableLib.h>
#include <Guid/EventGroup.h>
#include "IScsiCommon.h" #include "IScsiCommon.h"
#include "IScsiDriver.h" #include "IScsiDriver.h"
#include "IScsiInitiatorName.h" #include "IScsiInitiatorName.h"

View File

@ -536,11 +536,12 @@ IScsiCreateDriverData (
// Create an event to be signal when the BS to RT transition is triggerd so // Create an event to be signal when the BS to RT transition is triggerd so
// as to abort the iSCSI session. // as to abort the iSCSI session.
// //
Status = gBS->CreateEvent ( Status = gBS->CreateEventEx (
EVT_SIGNAL_EXIT_BOOT_SERVICES, EVT_NOTIFY_SIGNAL,
TPL_CALLBACK, TPL_CALLBACK,
IScsiOnExitBootService, IScsiOnExitBootService,
Private, Private,
&gEfiEventExitBootServicesGuid,
&Private->ExitBootServiceEvent &Private->ExitBootServiceEvent
); );
if (EFI_ERROR (Status)) { if (EFI_ERROR (Status)) {

View File

@ -54,6 +54,9 @@
gEfiVariableArchProtocolGuid ## ALWAYS_PRODUCES gEfiVariableArchProtocolGuid ## ALWAYS_PRODUCES
gEfiVariableWriteArchProtocolGuid ## ALWAYS_PRODUCES gEfiVariableWriteArchProtocolGuid ## ALWAYS_PRODUCES
[Guids]
gEfiEventVirtualAddressChangeGuid
[Pcd.common] [Pcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize

View File

@ -237,11 +237,12 @@ VariableServiceInitialize (
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
Status = gBS->CreateEvent ( Status = gBS->CreateEventEx (
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, EVT_NOTIFY_SIGNAL,
TPL_NOTIFY, TPL_NOTIFY,
VariableClassAddressChangeEvent, VariableClassAddressChangeEvent,
NULL, NULL,
&gEfiEventVirtualAddressChangeGuid,
&mVirtualAddressChangeEvent &mVirtualAddressChangeEvent
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);

View File

@ -33,6 +33,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/PcdLib.h> #include <Library/PcdLib.h>
#include <VariableFormat.h> #include <VariableFormat.h>
#include <Guid/EventGroup.h>
#define GET_VARIABLE_NAME_PTR(a) (CHAR16 *) ((UINTN) (a) + sizeof (VARIABLE_HEADER)) #define GET_VARIABLE_NAME_PTR(a) (CHAR16 *) ((UINTN) (a) + sizeof (VARIABLE_HEADER))
typedef enum { typedef enum {

View File

@ -2063,11 +2063,12 @@ VariableServiceInitialize (
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);
Status = gBS->CreateEvent ( Status = gBS->CreateEventEx (
EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, EVT_NOTIFY_SIGNAL,
TPL_NOTIFY, TPL_NOTIFY,
VariableClassAddressChangeEvent, VariableClassAddressChangeEvent,
NULL, NULL,
&gEfiEventVirtualAddressChangeGuid,
&mVirtualAddressChangeEvent &mVirtualAddressChangeEvent
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);

View File

@ -36,6 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/MemoryAllocationLib.h> #include <Library/MemoryAllocationLib.h>
#include <Guid/VariableInfo.h> #include <Guid/VariableInfo.h>
#include <Guid/GlobalVariable.h> #include <Guid/GlobalVariable.h>
#include <Guid/EventGroup.h>
#include <VariableFormat.h> #include <VariableFormat.h>
#define VARIABLE_RECLAIM_THRESHOLD (1024) #define VARIABLE_RECLAIM_THRESHOLD (1024)

View File

@ -62,6 +62,7 @@
[Guids] [Guids]
gEfiVariableInfoGuid ## PRODUCES ## Configuration Table Guid gEfiVariableInfoGuid ## PRODUCES ## Configuration Table Guid
gEfiGlobalVariableGuid ## PRODUCES ## Variable Guid gEfiGlobalVariableGuid ## PRODUCES ## Variable Guid
gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event
[Pcd.common] [Pcd.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize