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
This commit is contained in:
mdkinney 2010-02-11 03:55:26 +00:00
parent b07a5b68ad
commit 0628eb2c76
1 changed files with 1 additions and 6 deletions

View File

@ -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;
}