From 712a5698a6edd14d8247132cbbbe63da1ea69bf0 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Thu, 29 Jul 2010 02:39:37 +0000 Subject: Sync fix on MdePkg r9982. 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@10709 6f19259b-4bc3-4df7-8a09-765794883524 --- .../EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'EdkCompatibilityPkg/Foundation/Library') diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c index 1ccc04973e..6cc2da31b0 100644 --- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/EdkDxeRuntimeDriverLib/Common/RuntimeLib.c @@ -44,11 +44,6 @@ RuntimeDriverExitBootServices ( IN VOID *Context ) { - // - // Clear out BootService globals - // - gBS = NULL; - mEfiAtRuntime = TRUE; } -- cgit v1.2.3