]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Do not set gBS to NULL when the ExitBootServices event notification for the UEFI...
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 03:55:26 +0000 (03:55 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 11 Feb 2010 03:55:26 +0000 (03:55 +0000)
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

MdePkg/Library/UefiRuntimeLib/RuntimeLib.c

index 8971efea69e72546f491633ba694cca4a9a4fdc9..b3e04a1ce2e849189d75c97197a053cc0dcd3f8f 100644 (file)
@@ -6,7 +6,7 @@
   OS virtual address space. All pointer values are different for a virtual \r
   mapping than from the normal physical mapping at boot services time.\r
 \r
-Copyright (c) 2006 - 2009 Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2010 Intel Corporation. <BR>\r
 All rights reserved. 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
@@ -47,11 +47,6 @@ RuntimeLibExitBootServicesEvent (
   IN VOID             *Context\r
   )\r
 {\r
-  //\r
-  // Clear out BootService globals\r
-  //\r
-  gBS             = NULL;\r
-\r
   mEfiAtRuntime = TRUE;\r
 }\r
 \r