From owner-freebsd-hackers Thu Feb 15 2:15: 0 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (c228380-a.sfmissn1.sfba.home.com [24.20.90.44]) by hub.freebsd.org (Postfix) with ESMTP id 2EC3437B491; Thu, 15 Feb 2001 02:14:53 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.1/8.11.1) with ESMTP id f1FAEbV09259; Thu, 15 Feb 2001 02:14:37 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200102151014.f1FAEbV09259@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Satyajeet Seth Cc: freebsd-net@freebsd.org, hackers@freebsd.org Subject: Re: KLD'fying PCI device driver! In-reply-to: Your message of "Thu, 15 Feb 2001 13:08:40 +0530." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Feb 2001 02:14:36 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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