Re: kernel crash in fault.c

From: Rik van Riel (riel@conectiva.com.br)
Date: Mon Jul 29 2002 - 09:13:05 EST


On 29 Jul 2002, Nandakumar NarayanaSwamy wrote:

> When the kernel boots up, it identifies my device (hardware
> device) and allocates memory and fixup irq for that.
> Mean while in driver i am registering the driver using,
> pci_register_driver. When i tried to access (write a word) the
> PCI
> memory space allocated for my device, the kernel crashes saying
> "Unable to handle kernel paging request at virtual address "
> in fault.c function : do_page_fault?
>
> Can anyone throw a light on this?

Are you using bus_to_virt (or whatever that thing is called now)
to translate the bus address to a memory address or are you taking
the bus address and trying to write to that memory address ?

regards,

Rik

-- 
Bravely reimplemented by the knights who say "NIH".

http://www.surriel.com/ http://distro.conectiva.com/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:32 EST