This module is only used for SMM S3 support for the bootloader that doesn't support SMM. The payload would save SMM rebase info to SMM communication area in normal boot and expect the bootloader in S3 path to rebase the SMM and trigger SMI by writing 0xB2 port with the given value from SMM communication area. The payload SMM handler would get chance to restore some registers in S3 path. 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>
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Bootloader Support SMM module
 | |
| #
 | |
| #  Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = BlSupportSmm
 | |
|   FILE_GUID                      = AA292DE7-E11E-42E6-846B-5813A5A8D982
 | |
|   MODULE_TYPE                    = DXE_SMM_DRIVER
 | |
|   PI_SPECIFICATION_VERSION       = 0x0001000A
 | |
|   VERSION_STRING                 = 1.0
 | |
|   ENTRY_POINT                    = BlSupportSmm
 | |
| 
 | |
| [Sources]
 | |
|   BlSupportSmm.c
 | |
|   BlSupportSmm.h
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
|   UefiCpuPkg/UefiCpuPkg.dec
 | |
|   UefiPayloadPkg/UefiPayloadPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   UefiDriverEntryPoint
 | |
|   UefiBootServicesTableLib
 | |
|   SmmServicesTableLib
 | |
|   MemoryAllocationLib
 | |
|   BaseLib
 | |
|   IoLib
 | |
|   HobLib
 | |
| 
 | |
| [Guids]
 | |
|   gS3CommunicationGuid
 | |
|   gEfiSmmSmramMemoryGuid
 | |
|   gSmmRegisterInfoGuid
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiSmmSwDispatch2ProtocolGuid
 | |
|   gEfiMpServiceProtocolGuid
 | |
|   gEfiSmmReadyToLockProtocolGuid
 | |
| 
 | |
| [Depex]
 | |
|   gEfiSmmSwDispatch2ProtocolGuid
 |