On 8/9/06, bora.sahin@xxxxxxxxxxx <bora.sahin@xxxxxxxxxxx> wrote:
> > i have this doubt regarding the addresses returned by
> > ioremap.
> > i mapped my devices's registers using ioremap. again when i try to
> > retrieve the physical address from the virtual address got from ioremap
> > using __pa(va) i see that the physical address is not the same which i
> > gave to ioremap function !!
ioremap doesnt give "kernel linear address" but gives "kernel virtual
address". It just sets up page tables for this. So you cant use __pa or
virt_to_phys.
--
Bora SAHIN
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
ok,
am sorry i dont understand the difference between kernel linear addresses and kernel virtual addresses.
AFAIK the processor finally accesses any memory using the page tables only.
regards,
Srinivas Bakki