]> git.proxmox.com Git - mirror_edk2.git/commit
IntelFsp2Pkg: Add FunctionParametePtr to FspGlobalData.
authorChasel Chiu <chasel.chiu@intel.com>
Wed, 20 May 2020 03:23:13 +0000 (11:23 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 21 May 2020 01:25:26 +0000 (01:25 +0000)
commit3f89db869028fa65a37756fd7f391cbd69f4579c
treebfa326e39831ce46cda58d83b01cbbc33f01c917
parentbc5012b8fbf9f769a62d8a7a2dbf04343c16d398
IntelFsp2Pkg: Add FunctionParametePtr to FspGlobalData.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2726

When FSP switching stack and calling bootloader functions,
the function parameter in stack may not be accessible easily.
We can store the function parameter pointer to FspGlobalData
and retrieve it after stack switched.

Also need to add Loader2PeiSwitchStack () to header file
as public function for platform FSP code to consume.

Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Signed-off-by: Chasel Chiu <chasel.chiu@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
IntelFsp2Pkg/Include/FspGlobalData.h
IntelFsp2Pkg/Include/Library/FspSwitchStackLib.h