MdeModulePkg: ReportStatusCodeRouter: Support StandaloneMm RSC Router

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>
This commit is contained in:
Kun Qin
2020-12-17 14:28:57 -08:00
parent 06201d580b
commit b1e97194a0
7 changed files with 179 additions and 55 deletions

View File

@@ -0,0 +1,49 @@
## @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
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = ReportStatusCodeRouterStandaloneMm
FILE_GUID = EAEEDEF9-ABE7-4B95-82B0-5A534C899B46
MODULE_TYPE = MM_STANDALONE
PI_SPECIFICATION_VERSION = 0x00010032
VERSION_STRING = 1.0
ENTRY_POINT = GenericStatusCodeStandaloneMmEntry
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64
#
[Sources]
ReportStatusCodeRouterCommon.c
ReportStatusCodeRouterCommon.h
ReportStatusCodeRouterStandaloneMm.c
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
MmServicesTableLib
StandaloneMmDriverEntryPoint
DebugLib
BaseLib
SynchronizationLib
MemoryAllocationLib
[Protocols]
gEfiMmRscHandlerProtocolGuid ## PRODUCES
gEfiMmStatusCodeProtocolGuid ## PRODUCES
[Depex]
TRUE