This change added support of RSC router under StandaloneMm. It replaces SMM version ReportStatusCode protocol definitions with MM version. This patch also switched to use gMmst instead of gSmst. Lastly, it abstracts standalone and traditional MM driver entrypoints into separate files to allow maximal common implementations. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Kun Qin <kun.q@outlook.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
		
			
				
	
	
		
			34 lines
		
	
	
		
			960 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			960 B
		
	
	
	
		
			C
		
	
	
	
	
	
/** @file
 | 
						|
  Report Status Code Router Driver which produces MM Report Stataus Code Handler Protocol
 | 
						|
  and MM Status Code Protocol.
 | 
						|
 | 
						|
  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>
 | 
						|
  Copyright (c) Microsoft Corporation.
 | 
						|
  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
 | 
						|
**/
 | 
						|
 | 
						|
#include "ReportStatusCodeRouterCommon.h"
 | 
						|
 | 
						|
/**
 | 
						|
  Entry point of Generic Status Code Driver.
 | 
						|
 | 
						|
  This function is the entry point of MM Status Code Router .
 | 
						|
  It produces MM Report Stataus Code Handler and Status Code protocol.
 | 
						|
 | 
						|
  @param  ImageHandle       The firmware allocated handle for the EFI image.
 | 
						|
  @param  SystemTable       A pointer to the EFI System Table.
 | 
						|
 | 
						|
  @retval EFI_SUCCESS       The entry point is executed successfully.
 | 
						|
 | 
						|
**/
 | 
						|
EFI_STATUS
 | 
						|
EFIAPI
 | 
						|
GenericStatusCodeStandaloneMmEntry (
 | 
						|
  IN EFI_HANDLE             ImageHandle,
 | 
						|
  IN EFI_MM_SYSTEM_TABLE    *SystemTable
 | 
						|
  )
 | 
						|
{
 | 
						|
  return GenericStatusCodeCommonEntry ();
 | 
						|
}
 |