]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeLib.c
Update RuntimeLib.
[mirror_edk2.git] / EdkModulePkg / Library / EdkUefiRuntimeLib / Ipf / RuntimeLib.c
index d0f0d6012bd0d9bf9e1e826cf965bd67206506d4..6399f67213223c2019b29696d99d95c0e4ee6b30 100644 (file)
@@ -13,10 +13,6 @@ Module Name:
 \r
     RuntimeLib.c\r
 \r
-Abstract:\r
-\r
-  Light weight lib to support Tiano drivers.\r
-\r
 --*/\r
 \r
 #include <SalApi.h>\r
@@ -26,13 +22,12 @@ Abstract:
 // Driver Lib Module Globals\r
 //\r
 \r
-STATIC EFI_EVENT            mRuntimeNotifyEvent;\r
-STATIC EFI_EVENT            mEfiVirtualNotifyEvent;\r
-\r
-STATIC EFI_PLABEL           mPlabel;\r
+STATIC EFI_EVENT                          mRuntimeNotifyEvent;\r
+STATIC EFI_EVENT                          mEfiVirtualNotifyEvent;\r
+STATIC EFI_PLABEL                         mPlabel;\r
 STATIC EXTENDED_SAL_BOOT_SERVICE_PROTOCOL *mEsalBootService;\r
 \r
-EFI_RUNTIME_SERVICES        *mRT                    = NULL;\r
+EFI_RUNTIME_SERVICES                      *mRT;\r
 \r
 STATIC\r
 VOID\r
@@ -66,6 +61,11 @@ Returns:
     ChildNotifyEventHandler = _gDriverExitBootServicesEvent[Index];\r
     ChildNotifyEventHandler (Event, NULL);\r
   }\r
+\r
+  //\r
+  // Clear out BootService globals\r
+  //\r
+  gBS             = NULL;\r
 }\r
 \r
 STATIC\r
@@ -107,13 +107,6 @@ Returns:
   mRT->ConvertPointer (EFI_IPF_GP_POINTER, (VOID **) &mPlabel.GP);\r
 \r
   SetEsalVirtualEntryPoint (mPlabel.EntryPoint, mPlabel.GP);\r
-\r
-  //\r
-  // Clear out BootService globals\r
-  //\r
-  gBS             = NULL;\r
-  gST             = NULL;\r
-  mRT             = NULL;\r
 }\r
 \r
 EFI_STATUS\r
@@ -236,6 +229,7 @@ Returns:
 }\r
 \r
 BOOLEAN\r
+EFIAPI\r
 EfiAtRuntime (\r
   VOID\r
   )\r
@@ -261,6 +255,7 @@ Returns:
 }\r
 \r
 BOOLEAN\r
+EFIAPI\r
 EfiGoneVirtual (\r
   VOID\r
   )\r
@@ -284,3 +279,4 @@ Returns:
 \r
   return (BOOLEAN) (ReturnReg.r9 == 1);\r
 }\r
+\r