1) SmmCore maintains the root SMI handler and NULL SMI handler database. 2) SmmCore consumes PcdSmiHandlerProfilePropertyMask to decide if SmmCore need support SMI handler profile. If SMI handler profile is supported, the SmmCore installs SMI handler profile protocol and SMI handler profile communication handler. 3) SMI handler profile protocol will record the hardware SMI handler profile registered by SmmChildDispatcher. 4) SMI handler profile communication handler will return all SMI handler profile info (NULL SMI handler, GUID SMI handler, and hardware SMI handler) Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
121 lines
4.8 KiB
INI
121 lines
4.8 KiB
INI
## @file
|
|
# This module provide an SMM CIS compliant implementation of SMM Core.
|
|
#
|
|
# Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# 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
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = PiSmmCore
|
|
MODULE_UNI_FILE = PiSmmCore.uni
|
|
FILE_GUID = E94F54CD-81EB-47ed-AEC3-856F5DC157A9
|
|
MODULE_TYPE = SMM_CORE
|
|
VERSION_STRING = 1.0
|
|
PI_SPECIFICATION_VERSION = 0x0001000A
|
|
ENTRY_POINT = SmmMain
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
|
|
[Sources]
|
|
PiSmmCore.c
|
|
PiSmmCore.h
|
|
PiSmmCorePrivateData.h
|
|
Page.c
|
|
Pool.c
|
|
Handle.c
|
|
Locate.c
|
|
Notify.c
|
|
Dependency.c
|
|
Dispatcher.c
|
|
Smi.c
|
|
InstallConfigurationTable.c
|
|
SmramProfileRecord.c
|
|
MemoryAttributesTable.c
|
|
SmiHandlerProfile.c
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
|
|
[LibraryClasses]
|
|
UefiDriverEntryPoint
|
|
BaseLib
|
|
BaseMemoryLib
|
|
PeCoffLib
|
|
PeCoffGetEntryPointLib
|
|
CacheMaintenanceLib
|
|
DebugLib
|
|
ReportStatusCodeLib
|
|
DevicePathLib
|
|
UefiLib
|
|
UefiBootServicesTableLib
|
|
MemoryAllocationLib
|
|
PcdLib
|
|
SmmCorePlatformHookLib
|
|
PerformanceLib
|
|
TimerLib
|
|
HobLib
|
|
SmmMemLib
|
|
DxeServicesLib
|
|
|
|
[Protocols]
|
|
gEfiDxeSmmReadyToLockProtocolGuid ## UNDEFINED # SmiHandlerRegister
|
|
gEfiSmmReadyToLockProtocolGuid ## PRODUCES
|
|
gEfiSmmCpuIo2ProtocolGuid ## CONSUMES
|
|
gEfiFirmwareVolume2ProtocolGuid ## CONSUMES
|
|
gEfiSmmEndOfDxeProtocolGuid ## PRODUCES
|
|
gEfiSecurityArchProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSecurity2ArchProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiLoadedImageProtocolGuid ## PRODUCES
|
|
gEfiDevicePathProtocolGuid ## CONSUMES
|
|
gEdkiiSmmExitBootServicesProtocolGuid ## SOMETIMES_PRODUCES
|
|
gEdkiiSmmLegacyBootProtocolGuid ## SOMETIMES_PRODUCES
|
|
gEdkiiSmmReadyToBootProtocolGuid ## PRODUCES
|
|
|
|
gEfiSmmSwDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmSxDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmPowerButtonDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmStandbyButtonDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmPeriodicTimerDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmGpiDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmIoTrapDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
gEfiSmmUsbDispatch2ProtocolGuid ## SOMETIMES_CONSUMES
|
|
|
|
[Pcd]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadFixAddressSmmCodePageNumber ## SOMETIMES_CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable ## CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfileMemoryType ## CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfilePropertyMask ## CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMemoryProfileDriverPath ## CONSUMES
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSmiHandlerProfilePropertyMask ## CONSUMES
|
|
|
|
[Guids]
|
|
gAprioriGuid ## SOMETIMES_CONSUMES ## File
|
|
gEfiEventDxeDispatchGuid ## PRODUCES ## GUID # SmiHandlerRegister
|
|
gEfiEventLegacyBootGuid ## PRODUCES ## GUID # SmiHandlerRegister
|
|
gEfiEventExitBootServicesGuid ## PRODUCES ## GUID # SmiHandlerRegister
|
|
gEfiEventReadyToBootGuid ## PRODUCES ## GUID # SmiHandlerRegister
|
|
gEfiEndOfDxeEventGroupGuid ## PRODUCES ## GUID # SmiHandlerRegister
|
|
## SOMETIMES_CONSUMES ## GUID # Locate protocol
|
|
## SOMETIMES_PRODUCES ## GUID # SmiHandlerRegister
|
|
gEdkiiMemoryProfileGuid
|
|
## SOMETIMES_PRODUCES ## GUID # Install protocol
|
|
gEdkiiSmmMemoryProfileGuid
|
|
gEdkiiPiSmmMemoryAttributesTableGuid ## SOMETIMES_PRODUCES ## SystemTable
|
|
## SOMETIMES_CONSUMES ## SystemTable
|
|
gLoadFixedAddressConfigurationTableGuid
|
|
## SOMETIMES_PRODUCES ## GUID # Install protocol
|
|
## SOMETIMES_PRODUCES ## GUID # SmiHandlerRegister
|
|
gSmiHandlerProfileGuid
|
|
|
|
[UserExtensions.TianoCore."ExtraFiles"]
|
|
PiSmmCoreExtra.uni
|