On Mon, Nov 24, 2008 at 10:47:38AM -0600, Kumar Gala wrote:
> +static struct {
> + phys_addr_t paddr;
> + unsigned int vaddr;
> + unsigned int size;
vaddr/size should be unsigned long (or uintptr_t/size_t).
> +phys_addr_t addrmap_virt_to_phys(unsigned int vaddr)
> +{
> + int i;
>
Add a library that helps in translating between virtual and physical
addresses. This library can be useful as a simple means to implement
map_physmem() and virt_to_phys() for platforms that need functionality
beyond the simple 1:1 mapping.
Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
---
includ
2 matches
Mail list logo