]> git.proxmox.com Git - mirror_edk2.git/commit
IntelFsp2Pkg: FSP can utilize bootloader stack
authorChasel, Chiu <chasel.chiu@intel.com>
Wed, 23 Jan 2019 08:12:38 +0000 (16:12 +0800)
committerChasel, Chiu <chasel.chiu@intel.com>
Mon, 28 Jan 2019 07:49:13 +0000 (15:49 +0800)
commit12a0a80b4aeeb9a8435ee785e685e33eb7ee451c
treeae71ffe34866958bcf99660e9c996b71cfb5fe60
parent35897da27ed289f086d2b528800fa60d6ef2407d
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>
IntelFsp2Pkg/FspSecCore/FspSecCoreM.inf
IntelFsp2Pkg/FspSecCore/Ia32/FspApiEntryM.nasm
IntelFsp2Pkg/FspSecCore/Ia32/ReadEsp.nasm [new file with mode: 0644]
IntelFsp2Pkg/FspSecCore/SecMain.c
IntelFsp2Pkg/FspSecCore/SecMain.h
IntelFsp2Pkg/IntelFsp2Pkg.dec