Re: ioremap addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> >       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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux