On Sat, 2014-04-12 at 14:57 +0200, Hans de Goede wrote: > u-boot does not call mem_malloc_init() until after dram has been setup, so > instead of wasting precious SRAM, simply but the HEAP in DRAM (just below > the BSS segment).
You also make it quite a bit bigger (2k->512k) -- was that deliberate? > Signed-off-by: Hans de Goede <[email protected]> > --- > include/configs/sunxi-common.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h > index f8dda7c..94871a0 100644 > --- a/include/configs/sunxi-common.h > +++ b/include/configs/sunxi-common.h > @@ -309,10 +309,10 @@ > > #endif /* CONFIG_SPL */ > /* end of 32 KiB in sram */ > -#define LOW_LEVEL_SRAM_STACK 0x00007800 /* End of sram - 2048 bytes > heap */ > +#define LOW_LEVEL_SRAM_STACK 0x00008000 /* End of sram */ > #define CONFIG_SPL_STACK LOW_LEVEL_SRAM_STACK > -#define CONFIG_SYS_SPL_MALLOC_START LOW_LEVEL_SRAM_STACK > -#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00000800 > +#define CONFIG_SYS_SPL_MALLOC_START 0x4ff00000 > +#define CONFIG_SYS_SPL_MALLOC_SIZE 0x00080000 /* 512 KiB */ > > #ifdef CONFIG_SPL_OS_BOOT > #define CONFIG_CMD_SPL > -- > 1.9.0 > -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
