From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 15 Sep 2015 11:04:24 -0400 Subject: [U-Boot] [PATCH v2] malloc_simple: Add support for switching to DRAM heap In-Reply-To: <1442240961-14177-1-git-send-email-hdegoede@redhat.com> References: <1442240961-14177-1-git-send-email-hdegoede@redhat.com> Message-ID: <20150915150424.GE26226@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 14, 2015 at 04:29:21PM +0200, Hans de Goede wrote: > 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: