[U-Boot-Users] Access global data from standalone application
Wolfgang Denk
wd at denx.de
Sat Jun 18 01:06:32 CEST 2005
In message <c3d0340b05061715317273d9ae at mail.gmail.com> you wrote:
>
> 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[].
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.
Note that this is intentional.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
G's Third Law: In spite of all evidence to the contra-
ry, the entire universe is composed of only two basic substances:
magic and bullshit.
H's Dictum: There is no magic ...
More information about the U-Boot
mailing list