ARM, MMU and IO space mapping

Robert Jarzmik robert.jarzmik at free.fr
Sun Dec 11 08:01:17 EST 2011


Sascha Hauer <s.hauer at pengutronix.de> writes:

>> That would require a function in arch/arm/cpu/mmu.c, to remap a physical address
>> range into a virtual one, wouldn't it ? Would you have a suggestion for the API
>> ? As in map_io_section(u32 phys_addr, void *virt) ?
>
> How about adding a size parameter ;)
Ok, then it would become "map_io_range(unsignend long phys_addr, void *virt)",
which is a little more complicated that the original map_io_section which
remapped only full 1M sections for simplicity.

But yeah, I can add that parameter :)

Cheers.

-- 
Robert



More information about the barebox mailing list