summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
diff options
context:
space:
mode:
authoryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-06 09:18:14 +0000
committeryshang1 <yshang1@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-06 09:18:14 +0000
commite8a3bee0364b5a952f7b1e73dc012b52bec1b4a0 (patch)
tree3bd26324f6277c1aa968a4e031ca836b0eb352e8 /EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
parentb4648de2bcba1443b91d116da8ca1f3b58e64867 (diff)
downloadedk2-platforms-e8a3bee0364b5a952f7b1e73dc012b52bec1b4a0.tar.xz
Update RuntimeLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1482 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c')
-rw-r--r--EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
index d80a71cda2..12f06e1324 100644
--- a/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
+++ b/EdkModulePkg/Library/EdkUefiRuntimeLib/Common/RuntimeLib.c
@@ -13,10 +13,6 @@ Module Name:
RuntimeLib.c
-Abstract:
-
- Light weight lib to support Tiano drivers.
-
--*/
#include <RuntimeLibInternal.h>
@@ -24,13 +20,15 @@ Abstract:
//
// Driver Lib Module Globals
//
-STATIC EFI_EVENT mRuntimeNotifyEvent;
-STATIC EFI_EVENT mEfiVirtualNotifyEvent;
-STATIC BOOLEAN mEfiGoneVirtual = FALSE;
-STATIC BOOLEAN mEfiAtRuntime = FALSE;
-EFI_RUNTIME_SERVICES *mRT = NULL;
+STATIC EFI_EVENT mRuntimeNotifyEvent;
+STATIC EFI_EVENT mEfiVirtualNotifyEvent;
+STATIC BOOLEAN mEfiGoneVirtual = FALSE;
+STATIC BOOLEAN mEfiAtRuntime = FALSE;
+EFI_RUNTIME_SERVICES *mRT;
+
+STATIC
VOID
EFIAPI
RuntimeDriverExitBootServices (
@@ -65,6 +63,11 @@ Returns:
ChildNotifyEventHandler (Event, NULL);
}
+ //
+ // Clear out BootService globals
+ //
+ gBS = NULL;
+
mEfiAtRuntime = TRUE;
}
@@ -108,13 +111,8 @@ Returns:
//
// Update global for Runtime Services Table and IO
//
- EfiConvertInternalPointer ((VOID **) &mRT);
+ EfiConvertPointer (0, (VOID **) &mRT);
- //
- // Clear out BootService globals
- //
- gBS = NULL;
- gST = NULL;
mEfiGoneVirtual = TRUE;
}
@@ -219,6 +217,7 @@ Returns:
}
BOOLEAN
+EFIAPI
EfiAtRuntime (
VOID
)
@@ -239,6 +238,7 @@ Returns:
}
BOOLEAN
+EFIAPI
EfiGoneVirtual (
VOID
)