u-boot/common
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
..
eeprom
init
spl Revert "spl: Drop bd_info in the data section" 2021-04-19 11:34:01 -04:00
android_ab.c
autoboot.c
avb_verify.c avb: Fix error when partition not found 2021-03-17 12:50:19 -04:00
bedbug.c
bloblist.c
board_f.c board_f: cosmetic: change the debug trace to KB in reserve_video 2021-04-10 16:53:56 +02:00
board_info.c sysinfo: Allow showing model info from sysinfo 2021-03-27 16:26:48 +13:00
board_r.c common: Move initr_addr_map() to a bit earlier 2021-03-05 10:25:43 +05:30
boot_fit.c
bootm.c bootm: Skip command-line substitution if !CONFIG_CMDLINE 2021-03-27 15:04:31 +13:00
bootm_os.c
bootretry.c
bootstage.c bootstage: Warning if space is exhausted 2021-03-27 15:04:31 +13:00
bouncebuf.c
cli.c
cli_hush.c hush: Fix assignments being misinterpreted as commands 2021-04-12 17:17:11 -04:00
cli_readline.c
cli_simple.c
command.c
common_fit.c common: fit: Add weak board_fit_config_name_match 2021-04-14 15:23:01 -04:00
console.c
cros_ec.c
ddr_spd.c
dfu.c
dlmalloc.c
dlmalloc.src
edid.c
exports.c
fdt_region.c
fdt_support.c common: fdt_support: Support special case of PCI address in fdt_read_prop() 2021-03-05 10:25:42 +05:30
flash.c
hash.c hash: Allow for SHA512 hardware implementations 2021-04-12 17:17:11 -04:00
hwconfig.c
image-android-dt.c
image-android.c
image-cipher.c
image-fdt.c lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support 2021-04-12 14:25:31 -04:00
image-fit-sig.c lib: Rename rsa-checksum.c to hash-checksum.c 2021-04-14 15:06:08 -04:00
image-fit.c image-fit: Accept OP-TEE images when booting a FIT 2021-04-14 16:02:43 -04:00
image-sig.c lib: Add support for ECDSA image signing 2021-04-14 15:06:08 -04:00
image.c Respect that some compression algos can be enabled separately for SPL 2021-03-01 10:21:36 +01:00
iomux.c
iotrace.c
kallsyms.c
Kconfig Convert CONFIG_MISC_INIT_F to Kconfig 2021-04-06 16:33:19 +12:00
Kconfig.boot Kconfig: Document the limitations of the simple SPL_LOAD_FIT path 2021-04-14 15:23:01 -04:00
kgdb.c
kgdb_stubs.c
lcd.c
lcd_console.c
lcd_console_rotation.c
lcd_simplefb.c
log.c log: Handle line continuation 2021-03-12 17:41:35 -05:00
log_console.c log: Handle line continuation 2021-03-12 17:41:35 -05:00
log_syslog.c
lynxkdi.c
main.c
Makefile x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
malloc_simple.c
memsize.c
menu.c
miiphyutil.c
qfw.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
s_record.c
scp03.c common: SCP03 control (enable and provision of keys) 2021-03-13 13:14:52 -05:00
splash.c
splash_source.c common: splash_source: fix -Wint-to-pointer-cast warning 2021-02-19 22:17:10 +01:00
stdio.c
system_map.c
update.c
usb.c
usb_hub.c usb: hub: Fix usb_get_port_status() for big-endian platforms 2021-04-06 16:38:57 +02:00
usb_kbd.c usb: kbd: Also accept keyboards with Interrupt OUT endpoint 2021-02-26 15:30:55 +01:00
usb_storage.c
xyzModem.c