aboutsummaryrefslogtreecommitdiffstats
path: root/bl32
diff options
context:
space:
mode:
authorDavid Horstmann <david.horstmann@arm.com>2020-10-14 15:17:49 +0100
committerDavid Horstmann <david.horstmann@arm.com>2020-10-28 17:58:49 +0000
commit3ed5606bd1156e61241b57cb2dcceb90f75f6332 (patch)
tree6a81a6b7d549bcbc75cc1b78119046d2f46d75b9 /bl32
parent7ad39818b184850d263008e7d36ba16adf72a669 (diff)
downloadplatform_external_arm-trusted-firmware-3ed5606bd1156e61241b57cb2dcceb90f75f6332.tar.gz
platform_external_arm-trusted-firmware-3ed5606bd1156e61241b57cb2dcceb90f75f6332.tar.bz2
platform_external_arm-trusted-firmware-3ed5606bd1156e61241b57cb2dcceb90f75f6332.zip
Use constant stack size with RECLAIM_INIT_CODE
Currently, when RECLAIM_INIT_CODE is set, the stacks are scaled to ensure that the entirety of the init section can be reclaimed as stack. This causes an issue in lib/psci/aarch64/psci_helpers.S, where the stack size is used for cache operations in psci_do_pwrdown_cache_maintenance(). If the stacks are scaled, then the PSCI code may fail to invalidate some of the stack memory before power down. Resizing stacks is also not good for stability in general, since code that works with a small number of cores may overflow the stack when the number of cores is increased. Change to make every stack be PLATFORM_STACK_SIZE big, and allow the total stack to be smaller than the init section. Any pages of the init section not reclaimed as stack will be set to read-only and execute-never, for security. Change-Id: I10b3884981006431f2fcbec3864c81d4a8c246e8 Signed-off-by: David Horstmann <david.horstmann@arm.com>
Diffstat (limited to 'bl32')
0 files changed, 0 insertions, 0 deletions