Skip to content
Snippets Groups Projects
user avatar
Simon Glass authored
At present bootstage uses the data section of the image to store its
information. There are a few problems with this:

- It does not work on all boards (e.g. those which run from flash before
relocation)
- Allocated strings still point back to the pre-relocation data after
relocation

Now that U-Boot has a pre-relocation malloc() we can use this instead,
with a pointer to the data in global_data. Update bootstage to do this and
set up an init routine to allocate the memory.

Now that we have a real init function, we can drop the fake 'reset' record
and add a normal one instead.

Note that part of the problem with allocated strings remains. They are
reallocated but this will only work where pre-relocation memory is
accessible after relocation.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
b383d6c0
History
Name Last commit Last update
..
andestech
asm-generic
bedbug
cavium
configs
cramfs
dm
dt-bindings
environment/ti
faraday
fsl-mc
jffs2
linux
lzma
mtd
net
pcmcia
power
samsung
spmi
synopsys
tee
test
u-boot
usb
zfs
.gitignore
ACEX1K.h
MCD_dma.h
MCD_progCheck.h
MCD_tasksInit.h
SA-1100.h
_exports.h
adc.h
addr_map.h
ahci.h
ali512x.h
altera.h
android_image.h
ansi.h
api.h
api_public.h
armcoremodule.h
asm-offsets.h
ata.h
atf_common.h
atmel_hlcdc.h
atmel_lcd.h
atmel_lcdc.h
atmel_mci.h
autoboot.h
axp152.h
axp209.h
axp221.h
axp809.h
axp818.h
axp_pmic.h
backlight.h
bcd.h
bios_emul.h
bitfield.h
blk.h
bmp_layout.h
bootcount.h
bootm.h
bootretry.h
bootstage.h
bouncebuf.h
bus_vcxk.h
bzlib.h
cbfs.h
circbuf.h
cli.h
cli_hush.h
clk-uclass.h
clk.h
cmd_spl.h
command.h
common.h
common_timing_params.h
commproc.h
compiler.h
config_cmd_all.h
config_defaults.h
config_distro_bootcmd.h
config_distro_defaults.h
config_fallbacks.h
config_fsl_chain_trust.h
config_phylib_all_drivers.h
config_uncmd_spl.h
console.h
cortina.h
cpsw.h
cpu.h
crc.h
cros_ec.h
cros_ec_message.h
dataflash.h
ddr_spd.h
debug_uart.h
dfu.h
dialog_pmic.h
display.h
display_options.h
div64.h
dm-demo.h
dm.h
dm9000.h
dma.h
dp83848.h
ds1722.h
dt-structs.h
dw_hdmi.h
dwc3-omap-uboot.h
dwc3-uboot.h
dwmmc.h
e500.h
ec_commands.h
edid.h
eeprom_field.h
eeprom_layout.h
efi.h
efi_api.h
efi_loader.h
elf.h
env_attr.h
env_callback.h
env_default.h
env_flags.h
environment.h
errno.h
ethsw.h
exports.h
ext4fs.h
ext_common.h
exynos_lcd.h
fastboot.h
fat.h
fb_mmc.h
fb_nand.h
fdt.h
fdt_simplefb.h
fdt_support.h
fdtdec.h
fis.h
flash.h
fm_eth.h
fpga.h
fs.h
fsl_csu.h
fsl_dcu_fb.h
fsl_ddr.h
fsl_ddr_dimm_params.h
fsl_ddr_sdram.h
fsl_ddrc_version.h
fsl_devdis.h
fsl_diu_fb.h
fsl_dspi.h
fsl_dtsec.h
fsl_errata.h
fsl_esdhc.h
fsl_fman.h
fsl_ifc.h
fsl_immap.h
fsl_lpuart.h
fsl_mdio.h
fsl_memac.h
fsl_mmdc.h
fsl_pmic.h
fsl_qe.h
fsl_sec.h
fsl_sec_mon.h
fsl_secboot_err.h
fsl_sfp.h
fsl_tgec.h
fsl_usb.h
fsl_validate.h
fsl_wdog.h
fuse.h
g_dnl.h
gdsys_fpga.h
generic-phy.h
gt64120.h
hash.h
hw_sha.h
hwconfig.h
i2c.h
i2c_eeprom.h
i2s.h
i8042.h
ide.h
image-sparse.h
image.h
imx_thermal.h
init_helpers.h
initcall.h
input.h
inttypes.h
iomux.h
ioports.h