Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2001 16:20:35 +0530 (IST)
From:      Satyajeet Seth <sseth@sasken.com>
To:        "Andrew R. Reiter" <arr@watson.org>
Cc:        <freebsd-net@FreeBSD.ORG>, <hackers@FreeBSD.ORG>
Subject:   Re: KLD'fying PCI device driver!
Message-ID:  <Pine.GSO.4.30.0102151557320.986-100000@suns3.sasi.com>
In-Reply-To: <Pine.NEB.3.96L.1010215033113.39746A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi


> Could you send the load handler function src?

My code does not contain a load handler function.

I did not add a load handler function, because none of the files in
/sys/pci directory like if_fxp.c, if_vr.c seemed to contain contain a load
handler function.
To the best of my knowledge, all the pci device driver modules use the
function pci_modevent() in /sys/pci/pci.c

> > I am trying to convert my PCI device driver into a KLD.
> >
> > So far I have done the following:
> > 1. Built the kernel without the static linked device driver.
> > 2. Added entries to Makefiles in /sys/modules and /sys/modules/xxx.
> > 3. Did "make all install" in /sys/modules directory.
> > 4. Tried loading the KLD. I got the following error:
> >    "Fatal trap 12: page fault while in kernel mode"
> >
> > Any ideas as to what could be going wrong?

Thanks
Satya




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0102151557320.986-100000>