[U-Boot] [U-Boot, v3, 01/10] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
Philipp Tomsich
philipp.tomsich at theobroma-systems.com
Thu Jul 27 12:44:07 UTC 2017
> Some platforms has very small sram to run spl code, so it has no
> enough sapce for so much malloc pool before relocation in
> spl stage as the normal u-boot stage.
> Make spl and normal u-boot stage use independent SYS_MALLOC_F_LEN,
> Then people can sets the pre-relocation malloc pool according to
> the memory space indepently.
>
> Signed-off-by: Andy Yan <andy.yan at rock-chips.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> Acked-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> ---
>
> Changes in v3:
> - use CONFIG_VAL(), which suggested by Simon
>
> Changes in v2:
> - introduce a new control CONFIG_SPL_SYS_MALLOC_F_LEN, adviced by Simon
>
> Kconfig | 10 ++++++++++
> cmd/bdinfo.c | 4 ++--
> common/Makefile | 4 +++-
> common/board_f.c | 4 ++--
> common/board_r.c | 2 +-
> common/dlmalloc.c | 12 ++++++------
> common/init/board_init.c | 8 ++++----
> common/spl/spl.c | 8 ++++----
> drivers/core/Kconfig | 8 ++++----
> drivers/serial/serial-uclass.c | 4 ++--
> include/asm-generic/global_data.h | 2 +-
> lib/asm-offsets.c | 2 +-
> lib/efi/efi_app.c | 2 +-
> 13 files changed, 41 insertions(+), 29 deletions(-)
>
Applied to u-boot-rockchip, thanks!
More information about the U-Boot
mailing list