REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1485 Current FSP utilizes pre-allocated temporary memory from boot loader for both heap and stack. To reduce overall temporary memory usage FSP may share the same stack with boot loader and only needs a smaller memory for heap, no separate memory required for stack. Setting PcdFspHeapSizePercentage to 0 to enable FSP sharing stack with boot loader, in this case boot loader stack has to be large enough for FSP to use. Default is 50 (half memory heap and half memory stack) for backward compatible with original model. Test: Verified on internal platform and booting successfully with both modes. Cc: Nate DeSimone <nathaniel.l.desimone@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Chasel Chiu <chasel.chiu@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
71 lines
2.0 KiB
INI
71 lines
2.0 KiB
INI
## @file
|
|
# Sec Core for FSP
|
|
#
|
|
# Copyright (c) 2016 - 2019, 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 = FspSecCoreM
|
|
FILE_GUID = C2F9AE46-3437-4FEF-9CB1-9A568B282FEE
|
|
MODULE_TYPE = SEC
|
|
VERSION_STRING = 1.0
|
|
|
|
#
|
|
# The following information is for reference only and not required by the build tools.
|
|
#
|
|
# VALID_ARCHITECTURES = IA32
|
|
#
|
|
|
|
[Sources]
|
|
SecMain.c
|
|
SecMain.h
|
|
SecFsp.c
|
|
SecFsp.h
|
|
SecFspApiChk.c
|
|
|
|
[Sources.IA32]
|
|
Ia32/Stack.nasm
|
|
Ia32/InitializeFpu.nasm
|
|
Ia32/FspApiEntryM.nasm
|
|
Ia32/FspApiEntryCommon.nasm
|
|
Ia32/FspHelper.nasm
|
|
Ia32/ReadEsp.nasm
|
|
|
|
[Binaries.Ia32]
|
|
RAW|Vtf0/Bin/ResetVec.ia32.raw |GCC
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
MdeModulePkg/MdeModulePkg.dec
|
|
IntelFsp2Pkg/IntelFsp2Pkg.dec
|
|
|
|
[LibraryClasses]
|
|
BaseMemoryLib
|
|
DebugLib
|
|
BaseLib
|
|
PciCf8Lib
|
|
SerialPortLib
|
|
FspSwitchStackLib
|
|
FspCommonLib
|
|
FspSecPlatformLib
|
|
|
|
[Pcd]
|
|
gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamBase ## CONSUMES
|
|
gIntelFsp2PkgTokenSpaceGuid.PcdTemporaryRamSize ## CONSUMES
|
|
gIntelFsp2PkgTokenSpaceGuid.PcdFspTemporaryRamSize ## CONSUMES
|
|
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage ## CONSUMES
|
|
gIntelFsp2PkgTokenSpaceGuid.PcdFspMaxInterruptSupported ## CONSUMES
|
|
|
|
[Ppis]
|
|
gEfiTemporaryRamSupportPpiGuid ## PRODUCES
|
|
gFspInApiModePpiGuid ## PRODUCES
|