UefiPayloadPkg: Add a SMM dispatch module
PCH SMM module would install SMM SW dispatch2 protocol. And it supports to register SMI handlers based on SMI APM interrupt from the bootloader information gSmmRegisterInfoGuid. It is possible to extend bootloader HOB to pass other information to support more SMI sources. If this module is not required by bootloader for some reason, the bootloader could skip this HOB or build a HOB without EOS info. Signed-off-by: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Benjamin You <benjamin.you@intel.com>
This commit is contained in:
51
UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
Normal file
51
UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
Normal file
@@ -0,0 +1,51 @@
|
||||
## @file
|
||||
# PCH SMM SMI Software dispatch module.
|
||||
#
|
||||
# Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = PchSmiDispatchSmm
|
||||
FILE_GUID = 60F343E3-2AE2-4AA7-B01E-BF9BD5C04A3B
|
||||
MODULE_TYPE = DXE_SMM_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
PI_SPECIFICATION_VERSION = 0x0001000A
|
||||
ENTRY_POINT = PchSmiDispatchEntryPoint
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
PchSmiDispatchSmm.c
|
||||
PchSmiDispatchSmm.h
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
UefiPayloadPkg/UefiPayloadPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
UefiDriverEntryPoint
|
||||
MemoryAllocationLib
|
||||
DebugLib
|
||||
UefiBootServicesTableLib
|
||||
SmmServicesTableLib
|
||||
BaseLib
|
||||
IoLib
|
||||
HobLib
|
||||
|
||||
[Protocols]
|
||||
gEfiSmmCpuProtocolGuid # PROTOCOL ALWAYS_CONSUMED
|
||||
gEfiSmmSwDispatch2ProtocolGuid # PROTOCOL ALWAYS_PRODUCED
|
||||
|
||||
[Guids]
|
||||
gSmmRegisterInfoGuid
|
||||
|
||||
[Depex]
|
||||
gEfiSmmCpuProtocolGuid
|
Reference in New Issue
Block a user