readb types and writeb types.

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

 



HI,

Could there any clue for the following 

My driver tries to access PCI memory address using the kernel api's
readb types and writeb types.

Whenever i am trying to access the memory range obtained from the PCI
subsystem, crashes my  driver.

i did the following for memory management.

1.physical_memory = pci_resource_start()
2.virtual_addreass= ioremap(phsical_memory,pci_resource_len(pdev,0));

I do  readb(virtual_addreass+PCI_REGISTER);

It crashes and hangs my system.I know some where i am accessing the out
of range memory. How do trace it.

Thanks in advance.
iqbal






 



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