mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
ARM: armv7: guard memory reserve for PSCI with #ifdef CONFIG_ARMV7_PSCI
If CONFIG_ARMV7_NONSEC is enabled, the linker script requires CONFIG_ARMV7_PSCI_NR_CPUS regardless of CONFIG_ARMV7_PSCI. Reviewed-by: Alexander Graf <agraf@suse.de> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
55a65e6187
commit
5a3aae68c7
1 changed files with 2 additions and 2 deletions
|
@ -83,10 +83,10 @@ SECTIONS
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
KEEP(*(.__secure_stack_start))
|
KEEP(*(.__secure_stack_start))
|
||||||
|
#ifdef CONFIG_ARMV7_PSCI
|
||||||
/* Skip addreses for stack */
|
/* Skip addreses for stack */
|
||||||
. = . + CONFIG_ARMV7_PSCI_NR_CPUS * ARM_PSCI_STACK_SIZE;
|
. = . + CONFIG_ARMV7_PSCI_NR_CPUS * ARM_PSCI_STACK_SIZE;
|
||||||
|
#endif
|
||||||
/* Align end of stack section to page boundary */
|
/* Align end of stack section to page boundary */
|
||||||
. = ALIGN(CONSTANT(COMMONPAGESIZE));
|
. = ALIGN(CONSTANT(COMMONPAGESIZE));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue