[U-Boot] Need input: Use Virtual address in commands; add translation/physical

Wolfgang Denk wd at denx.de
Thu Nov 27 00:22:17 CET 2008


Dear Andrew,

In message <c166aa9f0811261512p273f56a8qa17d22b4d57523d3 at mail.gmail.com> you wrote:
>
> > - Initially, a xlat (or insert better name here) command-line command
> > will be added to give you a PA given a VA, and vice-versa.
> 
> virt_to_phys and phys_to_virt?

C'me on, we actually have to *type* that command every now and  then,
so  please  let's chose a short name. "xlat" has the benefit that BDI
users  already  know  the  it,  it's  short,  and  can  probably   be
abbreviated as "xl" or so without risk of name collisions :-)

> I would love to see memory addresses get parsed through a common
> routine - that would allow easily hooking in an arch/platform specific
> routine to filter out addresses that should be avoided.

U-Boot is not supposed to do any such filtering.

"UNIX was not designed to stop you from doing stupid things,  because
that would also stop you from doing clever things."       - Doug Gwyn


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
For every complex problem, there is a solution that is simple,  neat,
and wrong.                                           -- H. L. Mencken


More information about the U-Boot mailing list