From: Philipp Tomsich Date: Thu, 27 Jul 2017 12:37:59 +0200 Subject: [U-Boot] [U-Boot, v3, 01/10] make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN In-Reply-To: <1500889414-26351-1-git-send-email-andy.yan@rock-chips.com> References: <1500889414-26351-1-git-send-email-andy.yan@rock-chips.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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 > Reviewed-by: Tom Rini > Acked-by: Philipp Tomsich > --- > > 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(-) > Reviewed-by: Philipp Tomsich