Date: Thu, 15 Feb 2001 02:14:36 -0800 From: Mike Smith <msmith@freebsd.org> To: Satyajeet Seth <sseth@sasken.com> Cc: freebsd-net@freebsd.org, hackers@freebsd.org Subject: Re: KLD'fying PCI device driver! Message-ID: <200102151014.f1FAEbV09259@mass.dis.org> In-Reply-To: Your message of "Thu, 15 Feb 2001 13:08:40 %2B0530." <Pine.GSO.4.30.0102151227470.23979-100000@suns3.sasi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi > > 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? Too many. You haven't really given anything like enough detail here. - What FreeBSD version? - Build the kernel with DDB and symbols, and show us the backtrace. - How is your module attached to the rest of the system? Broadly: - You may not have specified the module correctly. - Your hardware init function may not work properly in the case where the system is already up and running (eg. you may be generating interrupts before you are ready to handle them). - You may be building against sources that don't match your running kernel. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E 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?200102151014.f1FAEbV09259>