From owner-freebsd-hackers Wed Sep 10 21:34:00 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA25348 for hackers-outgoing; Wed, 10 Sep 1997 21:34:00 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA25324 for ; Wed, 10 Sep 1997 21:33:56 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.8.4/8.8.4) with ESMTP id GAA19022; Thu, 11 Sep 1997 06:33:55 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.8.6/brasil-1.2) with UUCP id GAA09914; Thu, 11 Sep 1997 06:33:18 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.7/keltia-uucp-2.10/nospam) id XAA05276; Wed, 10 Sep 1997 23:46:36 +0200 (CEST) Message-ID: <19970910234636.15636@keltia.freenix.fr> Date: Wed, 10 Sep 1997 23:46:36 +0200 From: Ollivier Robert To: FREEBSD Cc: Philippe.Brun@eurocontrol.fr Subject: Re: Port an arinc isa bus driver from HP Unix References: <3416CCEB@brteec1> <19970910172336.17475@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <19970910172336.17475@lemis.com>; from Greg Lehey on Wed, Sep 10, 1997 at 05:23:36PM +0930 X-Operating-System: FreeBSD 3.0-CURRENT ctm#3634 AMD-K6 MMX @ 208 MHz Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to Greg Lehey: > If you don't, nobody will. Where did it panic? What was the > instruction? There's no reason to assume it happened in the function > you list. The code in isa.c tries to configure the card and tries to deference the address given in the config line (maddr 0xf0000) and kvtop() panics. The trace from memory is kvtop config_isadev_c config_isadev the line triggering the panic()is the following: isa.c: if (isdp->id_maddr) printf(" maddr 0x%lx", kvtop(isdp->id_maddr)); isdp->is_maddr is given to kvtop() as 0xf0f0000 (where it should probably be 0xf0000 I guess) and kvtop() can't find the address in the page tables. The main problem that I see is that the card wants to have its shared memory segment at 0xf0000 (that is, outside the usual 384 KB segment). I'm not a kernel guru and I see a problem where the kernel think it is using a virtual address where it is given a physical one (or the reverse). (in case one is wondering, Philippe is working in the same firm as I do and I'm responsible for him using FreeBSD instead of Linux :-) -- Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #31: Sat Sep 6 21:58:17 CEST 1997