audk/ArmPlatformPkg/PrePi
Olivier Martin 81514a8ad0 ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint
The stack size in the entrypoint (ie: $ARCH/ModuleEntryPoint.S) is calculated such as
StackSize = PrimaryCoreStack + (core_count - 1) * SecondaryCoreStack

While we were declaring the stacksize into the stack hob as:
StackSize = PrimaryCoreStack + (cluster * 8) * SecondaryCoreStack

If the number of cluster (ie: PcdClusterCount) were not defined correctly then
the stack size declaration were not correct.
It could cause stack corruption if the allocator allocates memory in this range.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15431 6f19259b-4bc3-4df7-8a09-765794883524
2014-04-03 20:05:30 +00:00
..
AArch64 ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
Arm ArmPlatformPkg/PrePi: Fixed register corruption 2014-01-23 00:59:08 +00:00
LzmaDecompress.h
MainMPCore.c ArmPkg: Removed the non-used PCD PcdGicPrimaryCoreId 2013-07-17 06:26:10 +00:00
MainUniCore.c
PeiMPCore.inf ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint 2014-04-03 20:05:30 +00:00
PeiUniCore.inf ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint 2014-04-03 20:05:30 +00:00
PrePi.c ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint 2014-04-03 20:05:30 +00:00
PrePi.h ArmPlatformPkg: Added Aarch64 support 2013-07-18 19:06:52 +00:00