From: Nye Liu <nyet@mrv.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Function pointers after relocation
Date: Wed, 2 Jul 2003 15:35:56 -0700 [thread overview]
Message-ID: <20030702223556.GA32001@zumanetworks.com> (raw)
In-Reply-To: <3F03564A.4090807@tait.co.nz>
Is this at all related to this problem:
http://sourceforge.net/mailarchive/message.php?msg_id=5376039
i.e. env not being copied from flash in relocate() when ENV_IS_EMBEDDED
is set?
On Thu, Jul 03, 2003 at 10:01:46AM +1200, Robin Gilks wrote:
> Wolfgang Denk wrote:
> >
> >This is not correct. The problem is that staticlly initialized data
> >(like initialized function pointers() must be manually relocated. If
> >there is such a thing left pointing to flash, it is a bug and should
> >be fixed.
> >
> >Which part of the code are you speaking of?
>
> Opps - a typo in the example!! I meant to say the pointer env_get_char()
> which is initialised to env_get_char_init and remains pointing at the
> Flash copy of that function after relocation.
>
> As it happens I think we have another problem in getting to our
> environment since the gd->env_ptr value seems to be garbage!! I don't
> see that running the code from Flash should in itself be a real problem
> (although undesirable).
>
> More info later if it's relevent...
>
>
> --
> Robin Gilks
> Senior Design Engineer Phone: (+64)(3) 357 1569
> Tait Electronics Fax : (+64)(3) 359 4632
> PO Box 1645 Christchurch Email : robin.gilks at tait.co.nz
> New Zealand
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
--
Nye Liu
nliu at mrv.com
(818) 772-6235x248
"Who would be stupid enough to quote a fictitious character?"
-- Don Quixote
next prev parent reply other threads:[~2003-07-02 22:35 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 5:04 [U-Boot-Users] Function pointers after relocation Robin Gilks
2003-07-02 14:31 ` Wolfgang Denk
2003-07-02 22:01 ` Robin Gilks
2003-07-02 22:35 ` Nye Liu [this message]
2003-07-08 5:48 ` Robin Gilks
2003-07-09 4:46 ` Robin Gilks
2003-07-09 16:15 ` nyet at mrv.com
2003-07-09 16:37 ` Wolfgang Denk
2003-08-02 0:18 ` Nye Liu
2003-08-02 9:37 ` Wolfgang Denk
2003-08-03 8:24 ` nyet at mrv.com
2003-08-03 11:11 ` Wolfgang Denk
2003-08-03 21:35 ` Robin Gilks
2003-07-14 11:14 ` Wolfgang Denk
2003-07-15 0:21 ` Robin Gilks
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=20030702223556.GA32001@zumanetworks.com \
--to=nyet@mrv.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