/*++\r
\r
-Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials \r
are licensed and made available under the terms and conditions of the BSD License \r
which accompanies this distribution. The full text of the license may be found at \r
STATIC EFI_EVENT mEfiVirtualNotifyEvent;\r
STATIC BOOLEAN mEfiGoneVirtual = FALSE;\r
STATIC BOOLEAN mEfiAtRuntime = FALSE;\r
-EFI_RUNTIME_SERVICES *mRT;\r
+EFI_RUNTIME_SERVICES *mRTEdkDxeRuntimeDriverLib;\r
\r
/**\r
Set AtRuntime flag as TRUE after ExitBootServices\r
IN VOID *Context\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
- EfiConvertPointer (0, (VOID **) &mRT);\r
+ EfiConvertPointer (0, (VOID **) &mRTEdkDxeRuntimeDriverLib);\r
\r
mEfiGoneVirtual = TRUE;\r
}\r
EFI_STATUS Status;\r
\r
ASSERT (SystemTable != NULL);\r
- mRT = SystemTable->RuntimeServices;\r
- ASSERT (mRT != NULL);\r
+ mRTEdkDxeRuntimeDriverLib = SystemTable->RuntimeServices;\r
+ ASSERT (mRTEdkDxeRuntimeDriverLib != NULL);\r
\r
//\r
// Register SetVirtualAddressMap () notify function\r