All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Jin <shawnxjin@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Access global data from standalone application
Date: Fri, 17 Jun 2005 17:45:44 -0700	[thread overview]
Message-ID: <c3d0340b05061717456bc12331@mail.gmail.com> (raw)
In-Reply-To: <20050617230638.10EC2C1510@atlas.denx.de>

> > Is there any way to access global data defined in U-Boot from
> > standalone applications? For example, hello_world wants to access
> > flash_info[].
> 
> Be careful with your terms. It is trivial to access "global data"  in
> SA apps as the GD pointer is passed in a register - but "Global Data"
> in U-Boot is something which has nothing to do with flash_info[].

Well, what I meant is exported data. Thanks for the clarification. My
understanding is that the GD pointer points to gd_t. Those data inside
gd_t can be accessed trivially in SA apps, as you said.

> You can export and call in SA apps functions which perform operations
> on flash_info[], but you cannot  access  flash_info[]  or  any  other
> global variables directly.

Confused. How do SA apps perform operations on exported data without
accessing them? Could you elaborate a little bit? I want to write a SA
app to print the protection info of all flash banks. I know flinfo can
do that. I just do some experiments. ;)

Regards,
-Shawn.

  reply	other threads:[~2005-06-18  0:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-17 22:31 [U-Boot-Users] Access global data from standalone application Shawn Jin
2005-06-17 23:06 ` Wolfgang Denk
2005-06-18  0:45   ` Shawn Jin [this message]
2005-06-18 15:18     ` Wolfgang Denk

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=c3d0340b05061717456bc12331@mail.gmail.com \
    --to=shawnxjin@gmail.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.