Re: readb types and writeb types.

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

 



--- Iqbal <iqbal@naturesoft.net> wrote:
 
> 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.

 Have you tried printing the return value of ioremap().
I see in the code that it returns NULL in some failure cases.

-Ravi.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/
--
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