Virtual addresses, ioremap, vmalloc, etc
arnd at arndb.de
Tue Dec 1 06:45:27 PST 2015
On Tuesday 01 December 2015 15:35:34 Mason wrote:
> Thanks for the detailed answer.
> One more thing: when I configure earlyprintk, I'm supposed to provide
> physical AND virtual address of the UART.
> If I'm not using a hard-coded P2V mapping, and instead rely on ioremap,
> how am I supposed to know the virtual address of the UART?
You can pick any number that has the correct alignment. Just keep using
the same number that you get with the 0xf0000000 base, and it should be
fine, the kernel will set up a section mapping for you.
More information about the linux-arm-kernel