From owner-freebsd-hackers Thu Feb 15 2:50:54 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from samar.sasi.com (samar.sasken.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id DF2DE37B401; Thu, 15 Feb 2001 02:50:44 -0800 (PST) Received: from samar (samar.sasi.com [164.164.56.2]) by samar.sasi.com (8.9.3/8.9.3) with SMTP id QAA09301; Thu, 15 Feb 2001 16:20:36 +0530 (IST) Received: from suns3.sasi.com ([10.0.36.3]) by samar.sasi.com; Thu, 15 Feb 2001 16:20:35 +0000 (IST) Received: from localhost (sseth@localhost) by suns3.sasi.com (8.9.3/8.9.3) with ESMTP id QAA01583; Thu, 15 Feb 2001 16:20:35 +0530 (IST) Date: Thu, 15 Feb 2001 16:20:35 +0530 (IST) From: Satyajeet Seth To: "Andrew R. Reiter" Cc: , Subject: Re: KLD'fying PCI device driver! In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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