[U-Boot] early_malloc outline

Wolfgang Denk wd at denx.de
Tue Jul 31 21:52:28 CEST 2012


Dear Tomas Hlavacek,

In message <CAEB7QLChVGARx3cpdE4tGQ01BeWoZr6ANHqnRJp02P6dZnNT5g at mail.gmail.com> you wrote:
> 
> Can/should we use some existing mechanism? Or would it be considered a
> viable option to choose different beginning address for early heap,
> use it (in architecture-specific way) and keep the pointer to the
> beginning in GD. Then copy the early heap to memory before caches are
> flushed and in case of DM copy again data from early heap to new
> destinations that has been obtained through malloc() when it is
> initialized?

It is difficult (or actually impossible) to answer this, if you do not
explain which concept you are talking about here, or why two copy
operations would be needed, what "in case of DM" means (and which
other cases exist), or how you intend to handle the problem of
changing addresses (and thus pointers becoming incorrect) for each of
such copy operations.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Plan to throw one away.  You will anyway."
                              - Fred Brooks, "The Mythical Man Month"


More information about the U-Boot mailing list