u-boot-brain/arch/arm/cpu
Michael Walle dd6df64c68 armv8: layerscape: rework spin table
There are two issues:

 (1) The spin table doesn't convert the endianness of the jump address.
     Although there is code for it, the result isn't used at all (x0).
 (2) If something goes wrong, the function returns. But that doesn't
     make sense at all.

Use the actual converted jump address as destination to fix. If
there is an error, jump to a trap loop. And rearrange the code exception
level switching code to make it smaller and clearer.

This reduces the size of the spin table code section from 696 bytes to
424 bytes. If CONFIG_ARMV8_SWITCH_TO_EL1 the code size reduced from 696
bytes to 632 bytes.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2020-07-27 14:16:28 +05:30
..
arm11 common: Drop net.h from common header 2020-05-18 17:33:31 -04:00
arm720t rename symbol: CONFIG_TEGRA -> CONFIG_ARCH_TEGRA 2020-05-15 14:47:35 -04:00
arm920t common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
arm926ejs treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
arm946es common: Move enable/disable_interrupts out of common.h 2019-12-02 18:25:01 -05:00
arm1136 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
arm1176 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armv7 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
armv7m common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
armv8 armv8: layerscape: rework spin table 2020-07-27 14:16:28 +05:30
pxa common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
sa1100 common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot-spl.lds spl: fix linker size check off-by-one errors 2019-05-05 08:48:50 -04:00
u-boot.lds ARM: Specify aligned address for secure section instead of using attributes 2018-09-07 09:11:42 -04:00