public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] bd_info vs. global_data
Date: Fri, 10 Nov 2006 15:33:08 +0100	[thread overview]
Message-ID: <20061110143308.19C9435360D@atlas.denx.de> (raw)
In-Reply-To: Your message of "Thu, 09 Nov 2006 20:15:32 CST." <4553E0C4.4010207@freescale.com>

In message <4553E0C4.4010207@freescale.com> you wrote:
>
> Is the bd located immediately after the gd in memory?

No, not at all. Actually we start with the gd, and space fopr the  bd
becomes only available after relocation to RAM.

> How about a rule that any function can write to bd_info (to initialize its 
> contents), but only the do_bootm_xxx functions can read from it, and only to 
> prepare it for passing to Linux.  This would eliminate code like this:
> 
> #define OF_TBCLK		(bd->bi_busfreq / 4)

I don't see how such a rule would actually prevent such code...

> and hopefully stuff like this:

No, this is perfectly reasonable and necessary.

> In this case, I don't understand the clocks_in_mhz environment variable.  Is 

RTFM.

> this something that we really want to be run-time configurable?

Yes, of course we de. We certainly *do* want to be able to boot  both
old and new Linux kernels and to switch between their different
interfaces in runtime.


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
Fantasy is like alcohol - too much is bad for you, a little bit makes
the world a better place. Like  an  exercise  bicycle  it  takes  you
nowhere, but it just might tone up the muscles that will. Daydreaming
got  us  where we are today; early in our evolution we learned to let
our minds wander so well that they started coming  back  with  souve-
nirs.   - Terry Pratchett & Stephen Briggs, _The Discworld Companion_

  reply	other threads:[~2006-11-10 14:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-09 23:13 [U-Boot-Users] bd_info vs. global_data Timur Tabi
2006-11-10  0:29 ` Wolfgang Denk
2006-11-10  2:15   ` Timur Tabi
2006-11-10 14:33     ` Wolfgang Denk [this message]
2006-11-10 16:38       ` Timur Tabi
2006-11-10 23:03         ` 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=20061110143308.19C9435360D@atlas.denx.de \
    --to=wd@denx.de \
    --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