From: Masahiro Yamada Date: Tue, 30 Aug 2016 07:22:21 +0000 (+0900) Subject: ARM: armv7: guard memory reserve for PSCI with #ifdef CONFIG_ARMV7_PSCI X-Git-Tag: v2016.09~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5a3aae68c74e029ed29d22999ab6f22687382f2d;p=u-boot 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 Signed-off-by: Masahiro Yamada --- diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index 36c9fd0bd0..0a5fae6efc 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -83,10 +83,10 @@ SECTIONS #endif { KEEP(*(.__secure_stack_start)) - +#ifdef CONFIG_ARMV7_PSCI /* Skip addreses for stack */ . = . + CONFIG_ARMV7_PSCI_NR_CPUS * ARM_PSCI_STACK_SIZE; - +#endif /* Align end of stack section to page boundary */ . = ALIGN(CONSTANT(COMMONPAGESIZE));