Date: Sat, 9 Aug 2003 23:32:42 +0200 From: Bernd Walter <ticso@cicely12.cicely.de> To: John Baldwin <jhb@FreeBSD.org> Cc: ticso@cicely.de Subject: Re: How to get a device_t Message-ID: <20030809213240.GM46866@cicely12.cicely.de> In-Reply-To: <20030809113804.GI46866@cicely12.cicely.de> References: <20030808195511.GD46866@cicely12.cicely.de> <XFMail.20030808163243.jhb@FreeBSD.org> <20030809113804.GI46866@cicely12.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Aug 09, 2003 at 01:38:05PM +0200, Bernd Walter wrote: > After adding you patch and some includes (<machine/pci_cfgreg.h>, > <dev/pci/pcireg.h>) > > [...] > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030809213240.GM46866>