ARM: Add CONFIG_ARMV7_SECURE_MAX_SIZE and check size of secure section
authorChen-Yu Tsai <wens@csie.org>
Sun, 19 Jun 2016 04:38:39 +0000 (12:38 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 15 Jul 2016 13:54:57 +0000 (15:54 +0200)
commit3eff681818e2c858175a7cc4e766f75e95827920
treee08efb181fef7b2ddcabb53599e9b863d61b56e4
parent28f90357323bc65e7da01c458222b84dc42988bb
ARM: Add CONFIG_ARMV7_SECURE_MAX_SIZE and check size of secure section

As the PSCI implementation grows, we might exceed the size of the secure
memory that holds the firmware.

Add a configurable CONFIG_ARMV7_SECURE_MAX_SIZE so platforms can define
how much secure memory is available. The linker then checks the size of
the whole secure section against this.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/cpu/u-boot.lds