public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.u.boot@aribaud.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S
Date: Thu, 5 Feb 2015 19:02:52 +0100	[thread overview]
Message-ID: <20150205190252.65612a52@lilith> (raw)
In-Reply-To: <CAPnjgZ3irF6djo+Mj8EN-V92OCB5SELiOCKBn+p7+uRG3FK9AQ@mail.gmail.com>

Hello Simon,

On Thu, 5 Feb 2015 08:34:53 -0700, Simon Glass <sjg@chromium.org> wrote:
> Hi Albert,

> >> reset - no stack, no RAM ( (except SPL can presumably access data section)
> >
> > More precisely: from a hardware viewpoint there would be no DDR, but
> > there could be SRAM, and from a program viewpoint, no stack and no
> > writable data: text, rodata and initialized data sections could be read
> > from, but should never be written to.
> 
> I can see in some rare cases we would want to store data here (as you
> say in the next paragraph) and in that case, initialised data is a
> good option - we cannot use BSS and it is ugly to write to memory
> directly. My sunxi patches store lr and sp, for example.

Not sure I'm getting your "initialized data is a good option", as
initialized data, just like BSS, cannot be written at reset stage.

> > "layout" does not entirely cover what board_init_f() does, though, and
> > I don't like "init" when what it does is actually resetting the board
> > to a known state -- yes, I know we often use "reset" for "restart". How
> > about this?
> >
> >         "start"
> >         "init"
> >         "forerun"
> >         "run"
> >
> > You've got the "f" that you wanted :) and the "run" in the third and
> > last stage are nice reminders that we do have a run-time C environment
> > there, except the third stage is not quite a running environment yet.
> 
> All of the above sounds good to me. Yes forerun has an f. I think it
> is better than the other things I can think of (find, furnish,
> formulate, fabricate, former)

"Anything else we does beginnin' with F, boys?" -- Otis McCoy, head of
the "feudin', fightin', feedin', funnin', flatin' McCoys" gang, /in/
the Judge Dredd (the comics) story "Alabama Blimps".

> Regards,
> Simon

Amicalement,
-- 
Albert.

  reply	other threads:[~2015-02-05 18:02 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-21 20:03 [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S Hans de Goede
2015-01-21 20:03 ` [U-Boot] [PATCH 2/3] ARMv7: Add a cpu_init_cortex_a7 helper function Hans de Goede
2015-01-21 20:03 ` [U-Boot] [PATCH 3/3] sunxi: Switch to using soc_init hook for setting the ACTLR.SMP bit Hans de Goede
2015-02-08  5:42   ` Ian Campbell
2015-01-21 21:59 ` [U-Boot] [PATCH 1/3] ARmv7: Add a soc_init hook to start.S Bill Pringlemeir
2015-01-22 13:29   ` Hans de Goede
2015-01-22 15:48     ` Bill Pringlemeir
2015-01-22 16:20 ` Tom Rini
2015-01-22 19:10   ` Hans de Goede
2015-01-22 21:03     ` Tom Rini
2015-01-23  8:54       ` Hans de Goede
2015-01-26 15:18         ` Tom Rini
2015-01-26 19:32           ` Hans de Goede
2015-01-27 14:23             ` Tom Rini
2015-01-31 21:25               ` Albert ARIBAUD
2015-01-31 21:49                 ` Tom Rini
2015-01-31 22:14                   ` Simon Glass
2015-02-02 18:56                     ` Tom Rini
2015-02-02 19:26                       ` Simon Glass
2015-02-04  8:48                       ` Albert ARIBAUD
2015-02-05  3:00                         ` Simon Glass
2015-02-05  8:27                           ` Hans de Goede
2015-02-05 15:14                           ` Albert ARIBAUD
2015-02-05 15:34                             ` Simon Glass
2015-02-05 18:02                               ` Albert ARIBAUD [this message]
2015-02-05 19:13                                 ` Simon Glass
2015-02-10 22:07                         ` Tom Rini
2015-02-10 23:27                           ` Simon Glass
2015-01-26  8:09   ` Albert ARIBAUD
2015-01-26 10:50     ` Hans de Goede

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=20150205190252.65612a52@lilith \
    --to=albert.u.boot@aribaud.net \
    --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