]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixed the issue in RuntimeStatusCode library that may not work on the early dispatche...
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 2 Aug 2011 06:23:16 +0000 (06:23 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 2 Aug 2011 06:23:16 +0000 (06:23 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12072 6f19259b-4bc3-4df7-8a09-765794883524

IntelFrameworkModulePkg/Library/SmmRuntimeDxeReportStatusCodeLibFramework/SmmRuntimeDxeSupport.c

index 1197e7c6166c1b542ebed9008ded1a4d53fc51c2..554be152b3dfbfbcecabc0450ebed1fa007f1573 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Library constructor & destructor, event handlers, and other internal worker functions.\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
   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
@@ -201,6 +201,14 @@ ReportStatusCodeLibExitBootServices (
   IN VOID             *Context\r
   )\r
 {\r
+  //\r
+  // If mReportStatusCode is NULL, then see if a Status Code Protocol instance is present\r
+  // in the handle database.\r
+  //\r
+  if (mReportStatusCode == NULL) {\r
+    mReportStatusCode = InternalGetReportStatusCode ();\r
+  }\r
+\r
   mHaveExitedBootServices = TRUE;\r
 }\r
 \r