From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add a oftdump (open firmware flattened tree dump) command.
Date: Thu, 02 Nov 2006 11:00:05 -0500 [thread overview]
Message-ID: <454A1605.8070004@smiths-aerospace.com> (raw)
In-Reply-To: <528646bc0611020746u3c7874d0wb6375d6c603101d4@mail.gmail.com>
Grant Likely wrote:
> On 10/31/06, Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com> wrote:
>> Add a oftdump (open firmware flattened tree dump) command.
>>
>> Git repository:
>> <http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=summary>
>>
>>
>> Branch: of-cmd
>> <http://www.cideas.us/cgi-bin/gitweb.cgi?p=u-boot/u-boot-of-cmd.git;a=shortlog;h=of-cmd>
>>
>>
>> Signed-off-by: Jerry Van Baren <vanbaren@cideas.com>
>
> Not that I have any authority on this, but I'm going to NAK it (for
> right now). Others may disagree.
>
> The global statics really bother me, and I'll take a look myself if
> there is a better way. Give me a few days.
>
> Cheers,
> g.
Hi Grant,
Global static is a oxymoron, they are "global" only in the ft_build.c
file starting at ft_dump_blob() and going to the end of the file. I
suspect what you are concerned about is the shared aspect, which isn't a
problem in u-boot since it is single threaded.
There are three choices:
1) "Global statics" - easiest and least memory use, but makes Good
Engineers[tm] queasy.
2) "Duplicate" the arrays (currently 2x256, becomes 4x256) as statics
inside the two functions - uses 2x the memory with no benefit (still
makes Good Engineers[tm] queasy, just a different queasy).
3) More clever matching on the parameter string vs. the OF blob where
the string is built up - I bailed out on this, but it is the best solution.
I know your type, you are just challenging me to actually do #3. ;-)
Best regards,
gvb
next prev parent reply other threads:[~2006-11-02 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-31 18:47 [U-Boot-Users] [PATCH] Add a oftdump (open firmware flattened tree dump) command Jerry Van Baren
2006-11-02 15:46 ` Grant Likely
2006-11-02 16:00 ` Jerry Van Baren [this message]
2006-11-02 19:39 ` Grant Likely
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=454A1605.8070004@smiths-aerospace.com \
--to=gerald.vanbaren@smiths-aerospace.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox