diff options
author | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-11 03:55:26 +0000 |
---|---|---|
committer | mdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524> | 2010-02-11 03:55:26 +0000 |
commit | 0628eb2c761c32ab35127201c38cb124562dfa9c (patch) | |
tree | a9a8dfbe00e3b25afa1f1605e3b07ef3c8f78661 /MdePkg/Library/UefiRuntimeLib | |
parent | b07a5b68adaaab0a3bce3e0fb8862e9e03453cb5 (diff) | |
download | edk2-0628eb2c761c32ab35127201c38cb124562dfa9c.tar.gz edk2-0628eb2c761c32ab35127201c38cb124562dfa9c.tar.bz2 edk2-0628eb2c761c32ab35127201c38cb124562dfa9c.zip |
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/Library/UefiRuntimeLib')
-rw-r--r-- | MdePkg/Library/UefiRuntimeLib/RuntimeLib.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c b/MdePkg/Library/UefiRuntimeLib/RuntimeLib.c index 8971efea69..b3e04a1ce2 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;
}
|