Use GUIDed event for virtual address change event

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qhuang8 2009-04-24 02:07:33 +00:00
parent 50cd68dfb5
commit 7c188740a6
2 changed files with 7 additions and 2 deletions

View File

@ -52,3 +52,5 @@
[Pcd.common] [Pcd.common]
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES
[Guids]
gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event

View File

@ -19,6 +19,8 @@
#include <PiDxe.h> #include <PiDxe.h>
#include <Guid/EventGroup.h>
#include <Library/BaseLib.h> #include <Library/BaseLib.h>
#include <Library/PciExpressLib.h> #include <Library/PciExpressLib.h>
#include <Library/IoLib.h> #include <Library/IoLib.h>
@ -128,11 +130,12 @@ DxeRuntimePciExpressLibConstructor (
// //
// 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,
DxeRuntimePciExpressLibVirtualNotify, DxeRuntimePciExpressLibVirtualNotify,
NULL, NULL,
&gEfiEventVirtualAddressChangeGuid,
&mDxeRuntimePciExpressLibVirtualNotifyEvent &mDxeRuntimePciExpressLibVirtualNotifyEvent
); );
ASSERT_EFI_ERROR (Status); ASSERT_EFI_ERROR (Status);