All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] Inconsistencies in commands regarding load_addr
Date: Thu, 8 Oct 2015 08:29:10 -0600	[thread overview]
Message-ID: <56167DB6.3000508@wwwdotorg.org> (raw)
In-Reply-To: <20151008044015.BC4DB380905@gemini.denx.de>

On 10/07/2015 10:40 PM, Wolfgang Denk wrote:
> Dear Beno?t,
>
> In message <5613E20F.8060306@wsystem.com> you wrote:
>>
>> I've just noticed that before the commit
>> 045fa1e1142552799ad3203e9e0bc22a11e866ea, ext2load and ext4load were setting the
>> load_addr global variable, but not fatload. Since then, none of these commands
>> set load_addr (initially derived from the loadaddr environment variable).
>
> That's bad.
>
>> ubifsload also does not set load_addr, but a quick grep shows that some other
>> filesystem commands set it, e.g. for zfs, jffs2, reiser or cramfs.
>>
>> Also, some commands set it only on success, while some other commands set it
>> from the command line arguments unconditionally.
>>
>> What's the expected correct behavior here?
>
> After successful loading the data to memory, load_addr should be set
> correctly, for all commands.  In the error case, the value of
> load_addr is undefined.

Is this documented anywhere? If not, I'm not convinced that there's a 
contract to be followed; it "just happens" that some filesystem-related 
commands work(ed) that way (and as Beno?t pointed out, apparently some 
don't irrespective of the mentioned patch).

  reply	other threads:[~2015-10-08 14:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-06 15:00 [U-Boot] Inconsistencies in commands regarding load_addr Benoît Thébaudeau
2015-10-06 18:09 ` Stephen Warren
2015-10-06 19:07   ` Benoît Thébaudeau
2015-10-08  4:40 ` Wolfgang Denk
2015-10-08 14:29   ` Stephen Warren [this message]
2015-10-08 21:29     ` Wolfgang Denk
2015-10-09  8:28       ` Benoît Thébaudeau
2015-10-09 13:18         ` Wolfgang Denk
2015-10-09 14:01           ` Benoît Thébaudeau
2015-10-09 14:55             ` Wolfgang Denk
2015-10-09 15:36         ` 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=56167DB6.3000508@wwwdotorg.org \
    --to=swarren@wwwdotorg.org \
    --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.