\r
RuntimeLib.c\r
\r
-Abstract:\r
-\r
- Light weight lib to support Tiano drivers.\r
-\r
--*/\r
\r
#include <RuntimeLibInternal.h>\r
//\r
// Driver Lib Module Globals\r
//\r
-STATIC EFI_EVENT mRuntimeNotifyEvent;\r
-STATIC EFI_EVENT mEfiVirtualNotifyEvent;\r
-STATIC BOOLEAN mEfiGoneVirtual = FALSE;\r
-STATIC BOOLEAN mEfiAtRuntime = FALSE;\r
\r
-EFI_RUNTIME_SERVICES *mRT = NULL;\r
+STATIC EFI_EVENT mRuntimeNotifyEvent;\r
+STATIC EFI_EVENT mEfiVirtualNotifyEvent;\r
+STATIC BOOLEAN mEfiGoneVirtual = FALSE;\r
+STATIC BOOLEAN mEfiAtRuntime = FALSE;\r
\r
+EFI_RUNTIME_SERVICES *mRT;\r
+\r
+STATIC\r
VOID\r
EFIAPI\r
RuntimeDriverExitBootServices (\r
ChildNotifyEventHandler (Event, NULL);\r
}\r
\r
+ //\r
+ // Clear out BootService globals\r
+ //\r
+ gBS = NULL;\r
+\r
mEfiAtRuntime = TRUE;\r
}\r
\r
//\r
// Update global for Runtime Services Table and IO\r
//\r
- EfiConvertInternalPointer ((VOID **) &mRT);\r
+ EfiConvertPointer (0, (VOID **) &mRT);\r
\r
- //\r
- // Clear out BootService globals\r
- //\r
- gBS = NULL;\r
- gST = NULL;\r
mEfiGoneVirtual = TRUE;\r
}\r
\r
}\r
\r
BOOLEAN\r
+EFIAPI\r
EfiAtRuntime (\r
VOID\r
)\r
}\r
\r
BOOLEAN\r
+EFIAPI\r
EfiGoneVirtual (\r
VOID\r
)\r