From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 15 Mar 2012 14:29:03 -0500 Subject: [U-Boot] [PATCH v4 16/27] Add spl load feature In-Reply-To: <1331777784-8528-17-git-send-email-sjg@chromium.org> References: <1331777784-8528-1-git-send-email-sjg@chromium.org> <1331777784-8528-17-git-send-email-sjg@chromium.org> Message-ID: <4F6242FF.9010708@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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