public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] arm: timer_init() and bss (relocation)
Date: Sat, 22 Jan 2011 08:40:42 +0100	[thread overview]
Message-ID: <4D3A89FA.6040104@free.fr> (raw)
In-Reply-To: <4D3A855D.1060503@emk-elektronik.de>

Le 22/01/2011 08:21, Reinhard Meyer a ?crit :

>> But this leads me to the question what happens with the stuff in the
>> data section. Seems I should have again a look at the lowlevel stuff to
>> understand that.
>
> Intuitively (without looking at the code) I would think that
> CONST DATA is ok,
> but non const, initialized data cannot work because it is not
> initialized before relocation...

To be precise:

1. const data are readable before and after relocation.

2. non-const initialized data are readable only until relocated, and 
then writable as well.

3. BSS data cannot and must not be used at all until relocated, and are 
then zeroed out before board_init_r() starts.

> Best Regards,
> Reinhard

Amicalement,
-- 
Albert.

      reply	other threads:[~2011-01-22  7:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-22  6:07 [U-Boot] arm: timer_init() and bss (relocation) Alexander Holler
2011-01-22  6:38 ` John Rigby
2011-01-22  7:13   ` Alexander Holler
2011-01-22  7:21     ` Reinhard Meyer
2011-01-22  7:40       ` Albert ARIBAUD [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=4D3A89FA.6040104@free.fr \
    --to=albert.aribaud@free.fr \
    --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