change the ExitBootService event to SetVirtualMapChanged event.
authorqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 5 Sep 2007 08:19:35 +0000 (08:19 +0000)
committerqwang12 <qwang12@de2fecce-e211-0410-80a6-f3fac2684e05>
Wed, 5 Sep 2007 08:19:35 +0000 (08:19 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@3777 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/MdeModulePkg/Library/EdkFvbServiceLib/Ia32/Fvb.c
edk2/MdeModulePkg/Library/EdkFvbServiceLib/X64/Fvb.c

index 1e07c54..d59e471 100644 (file)
@@ -24,9 +24,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Fvb.h"\r
 \r
 //\r
-// Event for Exit Boot Services Callback\r
+// Event for Set Virtual Map Changed Event\r
 //\r
-STATIC EFI_EVENT mExitBootServicesEvent = NULL;\r
+STATIC EFI_EVENT mSetVirtualMapChangedEvent = NULL;\r
 \r
 //\r
 // Lib will ASSERT if more FVB devices than this are added to the system.\r
@@ -312,11 +312,11 @@ FvbLibInitialize (
   // Register SetVirtualAddressMap () notify function\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
                   TPL_NOTIFY,\r
                   FvbVirtualAddressChangeNotifyEvent,\r
                   NULL,\r
-                  &mExitBootServicesEvent\r
+                  &mSetVirtualMapChangedEvent\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r
index d67c94c..0c5d769 100644 (file)
@@ -23,9 +23,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #include "Fvb.h"\r
 \r
 //\r
-// Event for Exit Boot Services Callback\r
+// Event for Set Virtual Map Changed Event\r
 //\r
-STATIC EFI_EVENT mExitBootServicesEvent = NULL;\r
+STATIC EFI_EVENT mSetVirtualMapChangedEvent = NULL;\r
 \r
 //\r
 // Lib will ASSERT if more FVB devices than this are added to the system.\r
@@ -311,11 +311,11 @@ FvbLibInitialize (
   // Register SetVirtualAddressMap () notify function\r
   //\r
   Status = gBS->CreateEvent (\r
-                  EVT_SIGNAL_EXIT_BOOT_SERVICES,\r
+                  EVT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
                   TPL_NOTIFY,\r
                   FvbVirtualAddressChangeNotifyEvent,\r
                   NULL,\r
-                  &mExitBootServicesEvent\r
+                  &mSetVirtualMapChangedEvent\r
                   );\r
   ASSERT_EFI_ERROR (Status);\r
 \r