From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 17 Mar 2017 08:09:57 -0400 Subject: [U-Boot] [PATCH v4 1/2] spl: Add spl_early_init() In-Reply-To: <20170315144329.27103-1-sjg@chromium.org> References: <20170315144329.27103-1-sjg@chromium.org> Message-ID: <20170317120957.GT19897@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 Wed, Mar 15, 2017 at 08:43:28AM -0600, Simon Glass wrote: > From: Eddie Cai > > At present malloc_base/_limit/_ptr are not initialised in spl_init() when > we call spl_init() in board_init_f(). This is due to a recent change aimed > at avoiding overwriting the malloc area set up on some boards by > spl_relocate_stack_gd(). > > However if CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN is not defined, we now > skip setting up the memory area in spl_init() which is obviously wrong. > > To fix this, add a new function spl_early_init() which can be called in > board_init_f(). > > Fixes: b3d2861e (spl: Remove overwrite of relocated malloc limit) > Signed-off-by: Eddie Cai > Rewrote spl_{,early_}init() to avoid duplicate code: > Rewrite/expand commit message: > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: