u-boot/arch/arm/cpu
Alexandru Gagniuc 58b504e5e1 Revert "spl: Drop bd_info in the data section"
This reverts commit 38d6b7ebda.

struct global_data contains a pointer to the bd_info structure. This
pointer was populated spl_set_bd() to a pre-allocated bd_info in the
".data" section. The referenced commit replaced this mechanism to one
that uses malloc(). That new mechanism is only used if SPL_ALLOC_BD=y.
which very few boards do.

The result is that (struct global_data)->bd is NULL in SPL on most
platforms. This breaks falcon mode, since arch_fixup_fdt() tries to
access (struct global_data)->bd and set the "/memory" node in the
devicetree. The result is that the "/memory" node contains garbage
values, causing linux to panic() as it sets up the page table.

Instead of trying to fix the mess, potentially causing other issues,
revert to the code that worked, while this change is reworked.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2021-04-19 11:34:01 -04:00
..
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 reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
arm926ejs reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
arm946es reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
arm1136 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
arm1176 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
armv7 arm: cp15: remove weak function arm_init_domains 2021-03-02 15:53:37 -05:00
armv7m reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
armv8 Revert "spl: Drop bd_info in the data section" 2021-04-19 11:34:01 -04:00
pxa reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
sa1100 reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05: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