Date: Thu, 15 Feb 2001 07:32:39 -0800 From: Julian Elischer <julian@elischer.org> To: Satyajeet Seth <sseth@sasken.com> Cc: "Andrew R. Reiter" <arr@watson.org>, freebsd-net@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: KLD'fying PCI device driver! Message-ID: <3A8BF697.DE9D4C72@elischer.org> References: <Pine.GSO.4.30.0102151557320.986-100000@suns3.sasi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v 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?3A8BF697.DE9D4C72>