1
0
Fork 0
remarkable-uboot/common/spl
Hans de Goede dcfcb8d49a malloc_simple: Add support for switching to DRAM heap
malloc_simple uses a part of the stack as heap, initially it uses
SYS_MALLOC_F_LEN bytes which typically is quite small as the initial
stacks sits in SRAM and we do not have that much SRAM to work with.

When DRAM becomes available we may switch the stack from SRAM to DRAM
to give use more room. This commit adds support for also switching to
a new bigger malloc_simple heap located in the new stack.

Note that this requires spl_init to be called before spl_relocate_stack_gd
which in practice means that spl_init must be called from board_init_f.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-10-20 18:40:27 +02:00
..
Makefile spl: Add EXT support to SPL 2014-10-27 17:54:03 -04:00
spl.c malloc_simple: Add support for switching to DRAM heap 2015-10-20 18:40:27 +02:00
spl_ext.c spl: Fix SPL EXT support 2014-11-26 11:21:16 -05:00
spl_fat.c spl: do not hang in spl_register_fat_device but return error value. It allows to use both CONFIG_SPL_FAT_SUPPORT and CONFIG_SPL_EXT_SUPPORT. 2014-10-27 17:54:08 -04:00
spl_mmc.c spl: Fix compile warning for arm64 2015-08-12 20:47:56 -04:00
spl_nand.c armv8/ls2085aqds: NAND boot support 2015-04-23 16:46:50 -07:00
spl_net.c net: cosmetic: Fix checkpatch.pl failures in net.c 2015-04-18 11:11:35 -06:00
spl_nor.c spl, spl_nor: fix compiler warning 2015-02-16 15:48:34 -05:00
spl_onenand.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl_sata.c remove unnecessary version.h includes 2015-03-24 10:50:50 -04:00
spl_usb.c Rename some defines containing FAT in their name to be filesystem generic 2014-10-27 11:04:01 -04:00
spl_ymodem.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00