]> git.proxmox.com Git - mirror_edk2.git/commit
ArmPkg/PrePeiCore: adhere to architectural stack alignment requirement
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 8 Dec 2015 07:35:30 +0000 (07:35 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 8 Dec 2015 07:35:30 +0000 (07:35 +0000)
commit7945b29c51f35e5fd8a6434bb6adde3cdb2d8b1c
treeb78017a0c8c2650733a3b79e1106a805fc7b4b73
parentb970ed6829d973d48e1a5b73d5de1d969c2ee384
ArmPkg/PrePeiCore: adhere to architectural stack alignment requirement

Instead of using fuzzy arithmetic with a hardcoded stack alignment value
of 0x4, use the symbolic constant CPU_STACK_ALIGNMENT (which is at least
8 bytes, btw) to round the temporary stack base and size.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19163 6f19259b-4bc3-4df7-8a09-765794883524
ArmPlatformPkg/PrePeiCore/MainMPCore.c
ArmPlatformPkg/PrePeiCore/MainUniCore.c