From: lgao4 Date: Tue, 2 Aug 2011 06:23:16 +0000 (+0000) Subject: Fixed the issue in RuntimeStatusCode library that may not work on the early dispatche... X-Git-Tag: edk2-stable201903~14453 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=3c28a7280b3f724d4b106d55e2efca37f65b0d2e Fixed the issue in RuntimeStatusCode library that may not work on the early dispatched Runtime driver. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12072 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c b/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c index 1197e7c616..554be152b3 100644 --- a/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c +++ b/IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c @@ -1,7 +1,7 @@ /** @file Library constructor & destructor, event handlers, and other internal worker functions. - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2011, Intel Corporation. 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 @@ -201,6 +201,14 @@ ReportStatusCodeLibExitBootServices ( IN VOID *Context ) { + // + // If mReportStatusCode is NULL, then see if a Status Code Protocol instance is present + // in the handle database. + // + if (mReportStatusCode == NULL) { + mReportStatusCode = InternalGetReportStatusCode (); + } + mHaveExitedBootServices = TRUE; }