From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH] arm: provide a CONFIG flag for disabling relocation
Date: Thu, 22 Sep 2011 09:10:20 +0200 [thread overview]
Message-ID: <4E7ADF5C.2040006@gmail.com> (raw)
In-Reply-To: <4E79F37C.3070402@aribaud.net>
Dear Albert,
Am Mi 21 Sep 2011 16:23:56 CEST schrieb Albert ARIBAUD:
> Le 21/09/2011 14:31, Andreas Bie?mann a ?crit :
>> Dear Albert,
>>
>> Am Mi 21 Sep 2011 14:03:09 CEST schrieb Albert ARIBAUD:
>>> Le 21/09/2011 13:20, Andreas Bie?mann a ?crit :
>>>> Dear "GROYER, Anthony",
>>>> Dear Albert,
>>>>
>>>> Am Mi 21 Sep 2011 12:51:33 CEST schrieb Albert ARIBAUD:
>>>>> Le 21/09/2011 11:29, GROYER, Anthony a ?crit :
<snip>
> Apart from your question (how are the number of registers in ldmia and
> stmia speed related to the speed of the copy loop?) there is another
> one: how do we handle the fact that the length to copy may not be a
> multiple of the ldmia/stmia 'width'? Even in arm926ejs/start.S, two
> registers are used, but the alignment for text+data is 4 bytes, not 8.
Good point. Well, we could implement some 'rewind' apart from .bss
zeroing, if we care about it. I guess this could be done without any
impact to copy time, if we really save time by using more regs for
ldmia/stmia.
But how about reading beyond the _end symbol from flash crossing some
border e.g. end of address space, end of flash space ... ?
> This did not bite us so far, and should not, since we're going to copy
> into the space after .text, which *should* be .bss, which we'll zero
> right after. But Murphy's law could hit...
>
>>> As for r8, it should be preserved as it points to gd, but that is
>>> ensured by the C code already IIRC.
>>
>> We use -ffixed-r8 therefore the compiler takes care for the C part, but
>> we need to respect this in asm.
>
> in arm926ejs/start.S we do. If there are other start.S files where r8
> is trashed, they should be fixed indeed.
There should no one else left, my last changeset fixed it globally:
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/90010/focus=90013
best regards
Andreas Bie?mann
next prev parent reply other threads:[~2011-09-22 7:10 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-20 14:22 [U-Boot] [RFC PATCH] arm: provide a CONFIG flag for disabling relocation GROYER, Anthony
2011-09-20 18:09 ` Wolfgang Denk
2011-09-20 19:13 ` Albert ARIBAUD
2011-09-21 9:29 ` GROYER, Anthony
2011-09-21 10:45 ` Wolfgang Denk
2011-09-21 11:44 ` Albert ARIBAUD
2011-09-21 10:51 ` Albert ARIBAUD
2011-09-21 11:20 ` Andreas Bießmann
2011-09-21 12:03 ` Albert ARIBAUD
2011-09-21 12:31 ` Andreas Bießmann
2011-09-21 14:23 ` Albert ARIBAUD
2011-09-22 7:10 ` Andreas Bießmann [this message]
2011-09-29 16:14 ` Andreas Bießmann
2011-09-30 7:21 ` Simon Schwarz
2011-10-01 6:48 ` Albert ARIBAUD
2011-09-20 21:34 ` Simon Glass
2011-09-21 14:21 ` Aneesh V
2011-09-23 16:04 ` Simon Glass
2011-10-01 7:01 ` Albert ARIBAUD
2011-10-03 3:34 ` Simon Glass
-- strict thread matches above, loose matches on Subject: below --
2011-03-25 13:12 Aneesh V
2011-03-25 13:27 ` Aneesh V
2011-03-25 14:12 ` Wolfgang Denk
2011-03-25 16:12 ` Aneesh V
2011-03-25 18:35 ` Albert ARIBAUD
2011-04-20 18:34 ` Simon Glass
2011-04-21 6:56 ` Aneesh V
2011-04-21 15:18 ` Simon Glass
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=4E7ADF5C.2040006@gmail.com \
--to=andreas.devel@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.