RE: Problem in getting kernel vritual address

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

 




>virtual_address = __va(0xfdf00000)  to get the virtual address for
>CCSRBAR , which  contains fdf00000 at offset zero.(It contains it's
>address at the offset zero from the CCSRBAR).

>If  I dereference the virtual_address( *virtual_address  = fdf00000)
>it should contain the same address. But when i tried this , it result in
>segmentation fault. pls give me any clue.

 I am not sure, but probably you should use ioremap(). 

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