diff options
author | Soby Mathew <soby.mathew@arm.com> | 2014-08-04 16:02:05 +0100 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2014-08-11 14:45:08 +0100 |
commit | aa442d3461d5cdb35febcfe5d89a67ae31207b60 (patch) | |
tree | 495c1bd5234b148bb456f0fa282945c8ee129d2b /plat/fvp | |
parent | 27905d0a10ceceeb9a98cfdaee3ceef69bf7b52c (diff) |
Reduce the runtime stack size in BL stages.
This patch separates the stack size for each BL stage and
reduces it after stack usage analysis was done.
Fixes ARM-software/tf-issues#200
Change-Id: I8edc6de2551b0a6788761d121937692b2149bb29
Diffstat (limited to 'plat/fvp')
-rw-r--r-- | plat/fvp/include/platform_def.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/plat/fvp/include/platform_def.h b/plat/fvp/include/platform_def.h index 70f84bbe..8f607bae 100644 --- a/plat/fvp/include/platform_def.h +++ b/plat/fvp/include/platform_def.h @@ -45,7 +45,17 @@ ******************************************************************************/ /* Size of cacheable stacks */ -#define PLATFORM_STACK_SIZE 0x800 +#if DEBUG_XLAT_TABLE +#define PLATFORM_STACK_SIZE 0x800 +#elif IMAGE_BL1 +#define PLATFORM_STACK_SIZE 0x440 +#elif IMAGE_BL2 +#define PLATFORM_STACK_SIZE 0x400 +#elif IMAGE_BL31 +#define PLATFORM_STACK_SIZE 0x400 +#elif IMAGE_BL32 +#define PLATFORM_STACK_SIZE 0x440 +#endif #define FIRMWARE_WELCOME_STR "Booting trusted firmware boot loader stage 1\n\r" |