
15 Mar
2012
15 Mar
'12
8:29 p.m.
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