[U-Boot] [PATCH v4 16/27] Add spl load feature

Scott Wood scottwood at freescale.com
Thu Mar 15 20:29:03 CET 2012


On 03/14/2012 09:16 PM, Simon Glass wrote:
> +#ifdef CONFIG_SPL_BUILD
> +static int reserve_stacks_spl(void)
> +{
> +	/* Why not -= ? */
> +	gd->dest_addr_sp += 128;	/* leave 32 words for abort-stack */
> +	gd->irq_sp = gd->dest_addr_sp;
> +	return 0;
> +}
> +#endif

Please explain what's going on here, and why it's suitable for all (or
at least most) SPLs.

And answer your own question about "Why not -=". :-)

-Scott



More information about the U-Boot mailing list