summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 03:55:26 +0000
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-11 03:55:26 +0000
commit0628eb2c761c32ab35127201c38cb124562dfa9c (patch)
treea9a8dfbe00e3b25afa1f1605e3b07ef3c8f78661 /MdePkg
parentb07a5b68adaaab0a3bce3e0fb8862e9e03453cb5 (diff)
downloadedk2-0628eb2c761c32ab35127201c38cb124562dfa9c.zip
edk2-0628eb2c761c32ab35127201c38cb124562dfa9c.tar.gz
edk2-0628eb2c761c32ab35127201c38cb124562dfa9c.tar.bz2
Do not set gBS to NULL when the ExitBootServices event notification for the UEFI Runtime Lib is executed.
There is no guarantee that the ExitBootServices notification function from this lib will be the last ExitBootServices notification function registered by a module that uses the UEFI Runtime lib. If additional ExitBootServices notification functions require the use of gBS, then setting to NULL will break those additional ExitBootServices notification functions. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9982 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiRuntimeLib/RuntimeLib.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
index 8971efe..b3e04a1 100644
--- a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
+++ b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c
@@ -6,7 +6,7 @@
OS virtual address space. All pointer values are different for a virtual
mapping than from the normal physical mapping at boot services time.
-Copyright (c) 2006 - 2009 Intel Corporation. <BR>
+Copyright (c) 2006 - 2010 Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -47,11 +47,6 @@ RuntimeLibExitBootServicesEvent (
IN VOID *Context
)
{
- //
- // Clear out BootService globals
- //
- gBS = NULL;
-
mEfiAtRuntime = TRUE;
}