Date: Tue, 4 Nov 1997 08:26:11 +0100 From: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE> To: Mike Smith <mike@smith.net.au> Cc: Christoph Kukulies <kuku@gilberto.physik.RWTH-Aachen.DE>, freebsd-hackers@freefall.FreeBSD.org Subject: Re: still mmap and my driver Message-ID: <19971104082611.29224@gil.physik.rwth-aachen.de> In-Reply-To: <199711030108.LAA00713@word.smith.net.au>; from Mike Smith on Mon, Nov 03, 1997 at 11:38:21AM %2B1030 References: <19971102090752.08503@gil.physik.rwth-aachen.de> <199711030108.LAA00713@word.smith.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 03, 1997 at 11:38:21AM +1030, Mike Smith wrote: > > On Sun, Nov 02, 1997 at 03:39:24PM +1030, Mike Smith wrote: > > > > > > > > Things are still weird with my driver ISA memory mapping. > > > > I noticed that the space I need to map is 16386 bytes > > > > from C8000 on. I changed isa_device id->id_msize to have 16386. > > > > And I have an iosiz 0x4000 in my config file now. > > > > > > > > I still get a kernel panic, when I access 0xca000 in the driver. > > > > > > > > Did I still overlook anything? > > > > > > The details of the "panic". Was it really a panic? Do you perhaps > > > mean that it was a page fault (probably good ol' trap 12)? > > > > Sure. I mean page fault because it cannot access 0xca000. > > It happens during the driver probe phase in the portion of code > > I wrote. It's quite obvious that it's because the page is not > > available. The kernel trap 12 was perfectly right: I was using the wrong address (not the kva, but the physical in one place). I got it now. Accessing the ISA memory through the kernel still uses a virtual address, mapped to 0xf0000000. > > This doesn't make a great deal of sense, unfortunately. If the correct > window is being mapped for your driver, it should work. It sounds like > the mapping isn't being done right. Source for your probe/attach > available? > > mike > -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971104082611.29224>