From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 12/23] Add spl load feature
Date: Tue, 12 Feb 2013 16:34:17 -0600 [thread overview]
Message-ID: <1360708457.24612.13@snotra> (raw)
In-Reply-To: <CAPnjgZ2f2jgVWrxnrT0fj74+spuTOTKF1_G-b_GwUTX+F7d5Qw@mail.gmail.com> (from sjg@chromium.org on Tue Feb 12 16:23:21 2013)
On 02/12/2013 04:23:21 PM, Simon Glass wrote:
> +Albert
>
> Hi Scott,
>
> On Tue, Feb 12, 2013 at 12:29 PM, Scott Wood
> <scottwood@freescale.com> wrote:
> > On 02/08/2013 09:12:08 AM, Simon Glass wrote:
> >>
> >> This adds secondary program loader support to the generic board.
> >>
> >> Signed-off-by: Simon Glass <sjg@chromium.org>
> >> ---
> >> Changes in v5: None
> >> Changes in v4: None
> >> Changes in v3: None
> >> Changes in v2: None
> >>
> >> common/board_f.c | 20 ++++++++++++++++++++
> >> 1 file changed, 20 insertions(+)
> >>
> >> diff --git a/common/board_f.c b/common/board_f.c
> >> index aa10f4b..3a8036f 100644
> >> --- a/common/board_f.c
> >> +++ b/common/board_f.c
> >> @@ -309,6 +309,7 @@ static int reserve_uboot(void)
> >> return 0;
> >> }
> >>
> >> +#ifndef CONFIG_SPL_BUILD
> >> /* reserve memory for malloc() area */
> >> static int reserve_malloc(void)
> >> {
> >> @@ -328,6 +329,7 @@ static int reserve_board(void)
> >> sizeof(bd_t), gd->dest_addr_sp);
> >> return 0;
> >> }
> >> +#endif
> >>
> >> static int setup_machine(void)
> >> {
> >> @@ -365,6 +367,7 @@ static int reserve_fdt(void)
> >> return 0;
> >> }
> >>
> >> +#ifndef CONFIG_SPL_BUILD
> >> static int reserve_stacks(void)
> >> {
> >> /* setup stack pointer for exceptions */
> >> @@ -384,6 +387,17 @@ static int reserve_stacks(void)
> >>
> >> return 0;
> >> }
> >> +#endif
> >> +
> >> +#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
> >
> >
> > "abort-stack" doesn't sound very generic, and that "why not"
> question should
> > probably be answered.
>
> I'm not sure what you mean by the first comment.
It's ARM-specific terminology ("exception" is more typical than "abort"
elsewhere). Why 32 words, BTW? Why is it larger in SPL versus non-SPL?
-Scott
next prev parent reply other threads:[~2013-02-12 22:34 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 15:11 [U-Boot] [PATCH v5 0/23] Create generic board init for ARM, x86, PPC Simon Glass
2013-02-08 15:11 ` [U-Boot] [PATCH v5 01/23] ppc: Add initial memory barrier macros Simon Glass
2013-02-11 19:52 ` Scott Wood
2013-02-12 18:44 ` Simon Glass
2013-02-12 18:50 ` Scott Wood
2013-02-12 18:55 ` Simon Glass
2013-02-12 19:04 ` Scott Wood
2013-02-12 19:06 ` Simon Glass
2013-02-08 15:11 ` [U-Boot] [PATCH v5 02/23] Introduce generic u-boot.h file Simon Glass
2013-02-08 15:11 ` [U-Boot] [PATCH v5 03/23] Replace __bss_end__ with __bss_end Simon Glass
2013-02-18 20:13 ` Tom Rini
2013-02-18 21:40 ` Otavio Salvador
2013-02-19 0:23 ` Simon Glass
2013-02-19 0:30 ` Otavio Salvador
2013-02-19 0:32 ` Simon Glass
2013-02-18 23:20 ` Andy Fleming
2013-02-08 15:12 ` [U-Boot] [PATCH v5 04/23] Introduce generic link section.h symbol files Simon Glass
2013-02-18 20:12 ` Tom Rini
2013-02-08 15:12 ` [U-Boot] [PATCH v5 05/23] arm: Use sections header to obtain link symbols Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 06/23] x86: nds32: Change stub example to use asm-generic/sections.h Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 07/23] Introduce a basic initcall implementation Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 08/23] Define CONFIG_SYS_LEGACY_BOARD everywhere Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 09/23] Declare watchdog functions in watchdog.h Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 10/23] Introduce generic pre-relocation board_f.c Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 11/23] Introduce generic post-relocation board_r.c Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 12/23] Add spl load feature Simon Glass
2013-02-12 20:29 ` Scott Wood
2013-02-12 22:23 ` Simon Glass
2013-02-12 22:34 ` Scott Wood [this message]
2013-03-02 23:39 ` Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 13/23] arm: Remove use of board_early_init_r/last_stage_init() Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 14/23] arm: Enable generic board support Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 15/23] Add CONFIG_SYS_SYM_OFFSETS to support offset symbols Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 16/23] Adjust board_f.c for ppc Simon Glass
2013-02-12 22:32 ` Scott Wood
2013-02-12 22:41 ` Simon Glass
2013-02-12 22:48 ` Scott Wood
2013-02-08 15:12 ` [U-Boot] [PATCH v5 17/23] Adjust board_r.c " Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 18/23] ppc: Enable generic board support Simon Glass
2013-02-12 20:38 ` Scott Wood
2013-02-12 22:29 ` Simon Glass
2013-02-12 22:40 ` Scott Wood
2013-02-08 15:12 ` [U-Boot] [PATCH v5 19/23] x86: Adjust board_f.c for x86 Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 20/23] x86: Adjust board_r.c " Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 21/23] x86: Use sections header to obtain link symbols Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 22/23] x86: Enable generic board support Simon Glass
2013-02-08 15:12 ` [U-Boot] [PATCH v5 23/23] tegra: Enable generic board for Seaboard Simon Glass
2013-02-08 17:23 ` Stephen Warren
2013-02-08 18:10 ` Simon Glass
2013-02-08 19:12 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1360708457.24612.13@snotra \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox