There is a bug in original EdkModulePkg\Library\EdkUefiRuntimeLib\Common\RuntimeLib...
authorklu2 <klu2@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 1 Feb 2007 03:05:49 +0000 (03:05 +0000)
committerklu2 <klu2@de2fecce-e211-0410-80a6-f3fac2684e05>
Thu, 1 Feb 2007 03:05:49 +0000 (03:05 +0000)
This bug will lead runtime interface GetMonoCount() failure because EdkModulePkg\Universal\MonotonicCounter\RuntimeDxe driver does not produce any <SetVirtualAddressMapCallBack>'s function.

git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@2343 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c

index 335a9b9..32eaed7 100644 (file)
@@ -102,18 +102,16 @@ RuntimeDriverLibConstruct (
   //\r
   // Register SetVirtualAddressMap () notify function\r
   // \r
-  if (_gDriverSetVirtualAddressMapEvent[0] != NULL) {\r
-    ASSERT (gBS != NULL);\r
-    Status = gBS->CreateEvent (\r
-                    EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
-                    EFI_TPL_NOTIFY,\r
-                    RuntimeLibVirtualNotifyEvent,\r
-                    NULL,\r
-                    &mEfiVirtualNotifyEvent\r
-                    );\r
-\r
-    ASSERT_EFI_ERROR (Status);\r
-  }\r
+  ASSERT (gBS != NULL);\r
+  Status = gBS->CreateEvent (\r
+                  EFI_EVENT_SIGNAL_VIRTUAL_ADDRESS_CHANGE,\r
+                  EFI_TPL_NOTIFY,\r
+                  RuntimeLibVirtualNotifyEvent,\r
+                  NULL,\r
+                  &mEfiVirtualNotifyEvent\r
+                  );\r
+\r
+  ASSERT_EFI_ERROR (Status);\r
 \r
   return EFI_SUCCESS;\r
 }\r