audk/ArmPlatformPkg
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
..
ArmRealViewEbPkg ArmPlatformPkg/ArmRealViewEbPkg: Fixed assertion in RuntimeDxe 2014-02-18 18:32:31 +00:00
ArmVExpressPkg ArmPlatformPkg/ArmVExpress-FVP-AArch64: Fixed number of cores and cluster for Base and Foundation models 2014-04-03 20:04:39 +00:00
Bds ArmPlatformPkg: Fixed memory leak after calling GetEnvironmentVariable() 2014-04-02 17:33:44 +00:00
Documentation ArmPlatformPkg/patches: Updated BaseTools-Pending-Patches.patch 2013-09-04 10:30:27 +00:00
Drivers ARM Packages: Removed 'inline' keyword 2013-12-10 16:39:54 +00:00
FileSystem/BootMonFs ArmPlatformPkg/BootMonFs: Added support for new revision of the NOR Flash file system 2014-03-12 17:23:33 +00:00
Include EmbeddedPkg/SerialPortExtLib.h: Changed SerialPortSetAttributes() prototype to return the set value(s) 2013-05-15 08:44:59 +00:00
Library ARM Packages: Include 'AsmMacroIoLibV8.h' instead of the 32bit version 2014-02-24 19:20:16 +00:00
MemoryInitPei ArmPkg/ArmPkg.dec: Redefined PcdSystemMemory(Base|Size) as UINT64 2014-01-10 11:27:31 +00:00
PlatformPei ARM Packages: Fixed line endings 2013-01-25 11:28:06 +00:00
PrePeiCore ArmPkg: Tidy assembler code 2014-03-01 11:01:00 +00:00
PrePi ArmPlatformPkg/PrePi: Use the same calculation to declare the stack size as in the entrypoint 2014-04-03 20:05:30 +00:00
Scripts ARM Packages: CRLF fixup 2014-02-12 15:30:34 +00:00
Sec ArmPkg: Tidy assembler code 2014-03-01 11:01:00 +00:00
ArmPlatformPkg-2ndstage.dsc EmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize 2013-11-28 21:40:14 +00:00
ArmPlatformPkg-2ndstage.fdf ArmPlatformPkg: Replaced FatPkg source package by the pre-built FatPkg binary 2013-01-25 12:00:33 +00:00
ArmPlatformPkg.dec ArmPlatformPkg/BootMonFs: Added support for the NorFlash File System of the ARM Development Boards 2014-01-16 00:06:13 +00:00
ArmPlatformPkg.dsc EmbeddedPkg/EmbeddedPkg.dec: Defined default values for PcdPrePiCpuMemorySize & PcdPrePiCpuIoSize 2013-11-28 21:40:14 +00:00
ArmPlatformPkg.fdf ARM Package: Increase FV file size for some EDK2 firmware 2013-08-30 11:50:36 +00:00
Contributions.txt EDK II Packages: Add Contributions.txt and License.txt files 2012-04-11 23:19:46 +00:00
License.txt EDK II Packages: Added License.txt files 2012-04-12 16:40:32 +00:00