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

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to