summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library
diff options
context:
space:
mode:
authorjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 11:09:53 +0000
committerjji4 <jji4@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-03 11:09:53 +0000
commit01a5c99447c957a48bdaf64828191f4a4295c8b6 (patch)
tree879c877f929c57a21756ffeae8e8090317ddf9be /MdeModulePkg/Library
parent3d7decbc4fa3720fbfab326fda920df9452f2311 (diff)
downloadedk2-platforms-01a5c99447c957a48bdaf64828191f4a4295c8b6.tar.xz
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
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r--MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf3
-rw-r--r--MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c5
-rw-r--r--MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h2
3 files changed, 8 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf b/MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf
index 3a568506f7..b28d2afb24 100644
--- a/MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf
+++ b/MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf
@@ -53,3 +53,6 @@
gEfiFirmwareVolumeBlockProtocolGuid ## NOTIFY
gEfiFvbExtensionProtocolGuid ## CONSUMES
+[Guids]
+ gEfiEventVirtualAddressChangeGuid ## PRODUCES
+
diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c
index f1fe99d932..0e412860d5 100644
--- a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c
+++ b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c
@@ -298,11 +298,12 @@ FvbLibInitialize (
//
// Register SetVirtualAddressMap () notify function
//
- Status = gBS->CreateEvent (
- EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,
+ Status = gBS->CreateEventEx (
+ EVT_NOTIFY_SIGNAL,
TPL_NOTIFY,
FvbVirtualAddressChangeNotifyEvent,
NULL,
+ &gEfiEventVirtualAddressChangeGuid,
&mSetVirtualMapChangedEvent
);
ASSERT_EFI_ERROR (Status);
diff --git a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h
index 7d0a09c7e1..1981e9682d 100644
--- a/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h
+++ b/MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h
@@ -33,6 +33,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/UefiBootServicesTableLib.h>
#include <Library/MemoryAllocationLib.h>
+#include <Guid/EventGroup.h>
+
#define MAX_FVB_COUNT 16
typedef struct {