mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-20 09:08:10 +02:00
Due to the definition difference of SMRAM Save State, SmmBase config in SMRAM Save State for AMD is also different. This patch provides the AmdSmmRelocationLib library instance to handle the SMRAM Save State difference. Cc: Abdul Lateef Attar <AbdulLateef.Attar@amd.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Zeng Star <star.zeng@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Signed-off-by: Jiaxin Wu <jiaxin.wu@intel.com> Acked-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Abdul Lateef Attar <AbdulLateef.Attar@amd.com>
61 lines
1.5 KiB
INI
61 lines
1.5 KiB
INI
## @file
|
|
# SMM Relocation Lib for each processor.
|
|
#
|
|
# This Lib produces the SMM_BASE_HOB in HOB database which tells
|
|
# the PiSmmCpuDxeSmm driver (runs at a later phase) about the new
|
|
# SMBASE for each processor. PiSmmCpuDxeSmm driver installs the
|
|
# SMI handler at the SMM_BASE_HOB.SmBase[Index]+0x8000 for processor
|
|
# Index.
|
|
#
|
|
# Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = SmmRelocationLib
|
|
FILE_GUID = 65C74DCD-0D09-494A-8BFF-A64226EB8054
|
|
MODULE_TYPE = PEIM
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = SmmRelocationLib
|
|
|
|
[Sources]
|
|
InternalSmmRelocationLib.h
|
|
AmdSmramSaveStateConfig.c
|
|
SmmRelocationLib.c
|
|
|
|
[Sources.Ia32]
|
|
Ia32/Semaphore.c
|
|
Ia32/SmmInit.nasm
|
|
|
|
[Sources.X64]
|
|
X64/Semaphore.c
|
|
X64/SmmInit.nasm
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseLib
|
|
BaseMemoryLib
|
|
CpuExceptionHandlerLib
|
|
DebugLib
|
|
HobLib
|
|
LocalApicLib
|
|
MemoryAllocationLib
|
|
PcdLib
|
|
PeiServicesLib
|
|
|
|
[Guids]
|
|
gSmmBaseHobGuid ## HOB ALWAYS_PRODUCED
|
|
gEfiSmmSmramMemoryGuid ## CONSUMES
|
|
|
|
[Pcd]
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber
|
|
|
|
[FeaturePcd]
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuHotPlugSupport ## CONSUMES
|