]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPlatformPkg: Fix stack switch bug after commit 7945b29
authorHeyi Guo <heyi.guo@linaro.org>
Thu, 10 Dec 2015 16:07:03 +0000 (16:07 +0000)
committerleiflindholm <leiflindholm@Edk2>
Thu, 10 Dec 2015 16:07:03 +0000 (16:07 +0000)
commit4960d8e00427d52c8db5da492ac7aff38cbc9d30
tree12eda1d42249240de411435437cff913280b1808
parentd1baf355b1e5d3363ef7b8abcabffe08af43b8e5
ArmPlatformPkg: Fix stack switch bug after commit 7945b29

This is the complementary patch for the commit 7945b29, which strictly
aligns temporary heap size and temporary stack size, but does not do
the same thing when switching stack and heap to permanent memory, and
then it may cause fatal data corruption like PHIT HOB lost and stack
pointer unaligned.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Heyi Guo <heyi.guo@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19213 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/PrePeiCore/PrePeiCore.c