public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Reinhard Meyer <u-boot@emk-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] previous two e-mails are RFC/demonstration!
Date: Sun, 14 Nov 2010 21:59:32 +0100	[thread overview]
Message-ID: <4CE04DB4.6010109@emk-elektronik.de> (raw)
In-Reply-To: <20101114204445.4531714EA7E@gemini.denx.de>

Dear All,
> Dear Albert ARIBAUD,
>
> In message<4CE04585.807@free.fr>  you wrote:
>>
>> Currently start.S sets the stack twice, once before calling
>> board_init_f, and once in relocate_code. Are you suggesting we remove
>> the second sp setting?
>
> As relocation can move the stack to some completely different location
> the SP has to be re-initialized (in this setup, after copying the
> global data to their new location).

In the *most general* case stack and gd will have to be relocated
to SDRAM, since the pre-relocation memory *could* be locked data cache
or some buffer memory that is not free anymore when u-boot is up.

Of course, on SoCs like AT91SAM9 where several (4k - 32k) of SRAM are
available it would be tempting to keep stack and gd just in SRAM. But we
don't want to specialize, we want to generalize...

Best regards,
Reinhard

      reply	other threads:[~2010-11-14 20:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-14 16:00 [U-Boot] previous two e-mails are RFC/demonstration! Reinhard Meyer
2010-11-14 16:23 ` Wolfgang Denk
2010-11-14 19:42   ` Reinhard Meyer
2010-11-14 20:24     ` Albert ARIBAUD
2010-11-14 20:33       ` Reinhard Meyer
2010-11-14 20:44       ` Wolfgang Denk
2010-11-14 20:59         ` Reinhard Meyer [this message]

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=4CE04DB4.6010109@emk-elektronik.de \
    --to=u-boot@emk-elektronik.de \
    --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