diff options
Diffstat (limited to 'MdeModulePkg/Library')
-rw-r--r-- | MdeModulePkg/Library/EdkFvbServiceLib/EdkFvbServiceLib.inf | 3 | ||||
-rw-r--r-- | MdeModulePkg/Library/EdkFvbServiceLib/Fvb.c | 5 | ||||
-rw-r--r-- | MdeModulePkg/Library/EdkFvbServiceLib/Fvb.h | 2 |
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 {
|