[U-Boot] [PATCH v4 1/4] Introduce virt_to_phys()

Wolfgang Denk wd at denx.de
Mon Dec 15 22:04:52 CET 2008


Dear Kumar Gala,

In message <1229210430-4522-1-git-send-email-galak at kernel.crashing.org> you wrote:
> virt_to_phys() returns the physical address given a virtual.  In most cases
> this will just the input value as the vast majority of systems run in a 1:1
> mode.
> 
> However in systems that are not running this way it should report the
> physical address or ~0 if no mapping exists for the given virtual address.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> 
> * No change, just reposting as part of the sequence
> 
> - k
> 
>  include/asm-arm/io.h        |    5 +++++
>  include/asm-avr32/io.h      |    5 +++++
>  include/asm-blackfin/io.h   |    5 +++++
>  include/asm-i386/io.h       |    5 +++++
>  include/asm-m68k/io.h       |    5 +++++
>  include/asm-microblaze/io.h |    5 +++++
>  include/asm-mips/io.h       |    2 +-
>  include/asm-nios/io.h       |    5 +++++
>  include/asm-nios2/io.h      |    5 +++++
>  include/asm-ppc/io.h        |    5 +++++
>  include/asm-sh/io.h         |    5 +++++
>  include/asm-sparc/io.h      |    5 +++++
>  12 files changed, 56 insertions(+), 1 deletions(-)

Applied, thanks.

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
When you say "I wrote a program that crashed  Windows",  people  just
stare  at you blankly and say "Hey, I got those with the system, *for
free*".        - Linus Torvalds in <3itc77$9lj at ninurta.fer.uni-lj.si>


More information about the U-Boot mailing list