diff options
author | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-24 02:07:33 +0000 |
---|---|---|
committer | qhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-04-24 02:07:33 +0000 |
commit | 7c188740a60601249600240d340db14c27b04156 (patch) | |
tree | ea3494b7548bf14aee19001ab84412384a2a2743 /MdePkg | |
parent | 50cd68dfb5de38ab01c132cd0e4d866690527e77 (diff) | |
download | edk2-platforms-7c188740a60601249600240d340db14c27b04156.tar.xz |
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
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf | 2 | ||||
-rw-r--r-- | MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf b/MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf index 6e3a7a91f9..23981af38f 100644 --- a/MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf +++ b/MdePkg/Library/DxeRuntimePciExpressLib/DxeRuntimePciExpressLib.inf @@ -52,3 +52,5 @@ [Pcd.common]
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress ## CONSUMES
+[Guids]
+ gEfiEventVirtualAddressChangeGuid ## PRODUCES ## Event
diff --git a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c b/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c index e6a3faa813..e56675b873 100644 --- a/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c +++ b/MdePkg/Library/DxeRuntimePciExpressLib/PciExpressLib.c @@ -19,6 +19,8 @@ #include <PiDxe.h>
+#include <Guid/EventGroup.h>
+
#include <Library/BaseLib.h>
#include <Library/PciExpressLib.h>
#include <Library/IoLib.h>
@@ -128,11 +130,12 @@ DxeRuntimePciExpressLibConstructor ( //
// Register SetVirtualAddressMap () notify function
//
- Status = gBS->CreateEvent (
- EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ Status = gBS->CreateEventEx (
+ EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
DxeRuntimePciExpressLibVirtualNotify,
NULL,
+ &gEfiEventVirtualAddressChangeGuid,
&mDxeRuntimePciExpressLibVirtualNotifyEvent
);
ASSERT_EFI_ERROR (Status);
|