From a1634424951222192f722711a0de6dbcfcb96e28 Mon Sep 17 00:00:00 2001 From: mdkinney Date: Thu, 29 May 2008 23:07:46 +0000 Subject: Add call to CreateEvent() for SetVirtualAddressMap() git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5311 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'MdeModulePkg/Universal/Variable/EmuRuntimeDxe') diff --git a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c index c774604215..0f9b6fdb61 100644 --- a/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c +++ b/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/InitVariable.c @@ -21,6 +21,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // extern ESAL_VARIABLE_GLOBAL *mVariableModuleGlobal; +EFI_EVENT mVirtualAddressChangeEvent = NULL; + EFI_STATUS EFIAPI RuntimeServiceGetVariable ( @@ -205,5 +207,14 @@ Returns: ); ASSERT_EFI_ERROR (Status); + Status = gBS->CreateEvent ( + EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE, + TPL_NOTIFY, + VariableClassAddressChangeEvent, + NULL, + &mVirtualAddressChangeEvent + ); + ASSERT_EFI_ERROR (Status); + return EFI_SUCCESS; } -- cgit v1.2.3