From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 9 14:33:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2662337B401; Sat, 9 Aug 2003 14:33:25 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 502CA43FEA; Sat, 9 Aug 2003 14:33:23 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h79LWnaK061268 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 9 Aug 2003 23:32:52 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.9/8.12.9) with ESMTP id h79LWlA4088204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Aug 2003 23:32:47 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.9/8.12.9) with ESMTP id h79LWkNS056301; Sat, 9 Aug 2003 23:32:46 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.9/8.12.9/Submit) id h79LWg6l056300; Sat, 9 Aug 2003 23:32:42 +0200 (CEST) Date: Sat, 9 Aug 2003 23:32:42 +0200 From: Bernd Walter To: John Baldwin Message-ID: <20030809213240.GM46866@cicely12.cicely.de> References: <20030808195511.GD46866@cicely12.cicely.de> <20030809113804.GI46866@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030809113804.GI46866@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: ticso@cicely12.cicely.de cc: Poul-Henning Kamp cc: freebsd-hackers@FreeBSD.org cc: ticso@cicely.de Subject: Re: How to get a device_t X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Aug 2003 21:33:25 -0000 On Sat, Aug 09, 2003 at 01:38:05PM +0200, Bernd Walter wrote: > After adding you patch and some includes (, > ) > > [...] > pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 > pci_open(1a): mode1res=0x80000000 (0x80000000) > pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=30001022) > pcibios: BIOS version 2.00 > Doing h0h0magic for AMD Elan sc520 > sysctl machdep.i8254_freq=1189161 returns 0 > Timecounter "ELAN" frequency 8333333 Hz > > > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x78363029 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc029d05b > stack pointer = 0x10:0xc03cdcc4 > frame pointer = 0x10:0xc03cdcd4 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 0 (swapper) > kernel: type 12 trap, code=0 > Stopped at BUS_ADD_CHILD+0x2b: pushl 0x4(%eax) > db> trace The number of arguments to elanbb_identify was wrong. Now things work better. I will now split it into elanmmcr and elanbb driver and then publish the finished work. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de