diff options
author | Chasel, Chiu <chasel.chiu@intel.com> | 2019-01-23 16:12:38 +0800 |
---|---|---|
committer | Chasel, Chiu <chasel.chiu@intel.com> | 2019-01-28 15:49:13 +0800 |
commit | 12a0a80b4aeeb9a8435ee785e685e33eb7ee451c (patch) | |
tree | ae71ffe34866958bcf99660e9c996b71cfb5fe60 /IntelFsp2Pkg/IntelFsp2Pkg.dec | |
parent | 35897da27ed289f086d2b528800fa60d6ef2407d (diff) | |
download | edk2-12a0a80b4aeeb9a8435ee785e685e33eb7ee451c.tar.gz |
IntelFsp2Pkg: FSP can utilize bootloader stack
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>
Diffstat (limited to 'IntelFsp2Pkg/IntelFsp2Pkg.dec')
-rw-r--r-- | IntelFsp2Pkg/IntelFsp2Pkg.dec | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/IntelFsp2Pkg/IntelFsp2Pkg.dec b/IntelFsp2Pkg/IntelFsp2Pkg.dec index 64a31b3505..d4c6d221a1 100644 --- a/IntelFsp2Pkg/IntelFsp2Pkg.dec +++ b/IntelFsp2Pkg/IntelFsp2Pkg.dec @@ -86,8 +86,12 @@ gIntelFsp2PkgTokenSpaceGuid.PcdFspBootFirmwareVolumeBase|0xFFF80000|UINT32|0x10000003
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeaderSpecVersion | 0x20| UINT8|0x00000002
+ #
# x % of FSP temporary memory will be used for heap
# (100 - x) % of FSP temporary memory will be used for stack
+ # 0 means FSP will share the stack with boot loader and FSP temporary memory is heap
+ # Note: This mode assumes boot loader stack is large enough for FSP to use.
+ #
gIntelFsp2PkgTokenSpaceGuid.PcdFspHeapSizePercentage | 50| UINT8|0x10000004
#
# Maximal Interrupt supported in IDT table.
|