Satyajeet Seth wrote:
>
> 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?
Assuming -current. (if 4.2, start with the one from -current)
start with /usr/share/examples/drivers/make_device_driver.sh
it at least compiles and loads.
modify it to include your code..
>
> Thanks
> Satya
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
--
__--_|\ Julian Elischer
/ \ [EMAIL PROTECTED]
( OZ ) World tour 2000-2001
---> X_.---._/
v
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message