spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
Some platforms have very limited SRAM to run SPL code, so there may not be the same amount space for a malloc pool before relocation in the SPL stage as the normal U-Boot stage. Make SPL and (the full) U-Boot stage use independent SYS_MALLOC_F_LEN, so the size of pre-relocation malloc pool can be configured memory space independently. Signed-off-by:Andy Yan <andy.yan@rock-chips.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Acked-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> [fixed up commit-message:] Signed-off-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Showing
- Kconfig 10 additions, 0 deletionsKconfig
- cmd/bdinfo.c 2 additions, 2 deletionscmd/bdinfo.c
- common/Makefile 3 additions, 1 deletioncommon/Makefile
- common/board_f.c 2 additions, 2 deletionscommon/board_f.c
- common/board_r.c 1 addition, 1 deletioncommon/board_r.c
- common/dlmalloc.c 6 additions, 6 deletionscommon/dlmalloc.c
- common/init/board_init.c 4 additions, 4 deletionscommon/init/board_init.c
- common/spl/spl.c 4 additions, 4 deletionscommon/spl/spl.c
- drivers/core/Kconfig 4 additions, 4 deletionsdrivers/core/Kconfig
- drivers/serial/serial-uclass.c 2 additions, 2 deletionsdrivers/serial/serial-uclass.c
- include/asm-generic/global_data.h 1 addition, 1 deletioninclude/asm-generic/global_data.h
- lib/asm-offsets.c 1 addition, 1 deletionlib/asm-offsets.c
- lib/efi/efi_app.c 1 addition, 1 deletionlib/efi/efi_app.c
Loading
Please register or sign in to comment