commit | 9364a67ab2b42cf655fd640d793e3948ace903cb | [log] [tgz] |
---|---|---|
author | Kumar Gala <galak@kernel.crashing.org> | Sat Dec 13 17:20:27 2008 -0600 |
committer | Wolfgang Denk <wd@denx.de> | Mon Dec 15 22:04:29 2008 +0100 |
tree | 68b2712c8c277d0489768ecbff8ed031dde00a3f | |
parent | e68a78a2b198b010942ea187113b3092c7d9caab [diff] |
Introduce virt_to_phys() virt_to_phys() returns the physical address given a virtual. In most cases this will be 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@kernel.crashing.org>