From owner-freebsd-drivers@FreeBSD.ORG Wed May 23 09:23:03 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FC4316A41F for ; Wed, 23 May 2007 09:23:03 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id C341413C458 for ; Wed, 23 May 2007 09:23:00 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 68F112084; Wed, 23 May 2007 11:22:54 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 4F9812083; Wed, 23 May 2007 11:22:54 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 18C9D508B; Wed, 23 May 2007 11:22:54 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: "Die Gestalt" References: <5bf3e10d0705150724q3f0fd25fq89094bd02d8f9d29@mail.gmail.com> <86veetgnk4.fsf@dwp.des.no> <5bf3e10d0705210744s119d1c5cpc20ab1036e9f98ff@mail.gmail.com> <5bf3e10d0705221130t222b80b5w64a4e446b04d6029@mail.gmail.com> Date: Wed, 23 May 2007 11:22:53 +0200 In-Reply-To: <5bf3e10d0705221130t222b80b5w64a4e446b04d6029@mail.gmail.com> (Die Gestalt's message of "Tue\, 22 May 2007 20\:30\:55 +0200") Message-ID: <863b1nvqqa.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-drivers@freebsd.org Subject: Re: Generic int 13h driver X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2007 09:23:03 -0000 "Die Gestalt" writes: > Muhahah, despite the world conspiracy against my evil plot to enslave disk > drivers with the BIOS I now manage to write to the disk. > > But I get a : > > kernel: stray irq14 > > Of course irq14 is the IRQ of the disk controller. The int13h returns wit= h a > status time out, but the writes succeeded anyways (he had no choice: I ha= ve > sharks with laser beams attached to their heads). I can see my random byt= es > when I open the disk with an hex editor. I think what happens is that the > BIOS never gets its IRQ14 "back" and cannot acknowledge that the operation > went fine. > > Any hint? Use PIO mode (no IRQs). It's slower, but using the BIOS is so slow you probably won't notice anyway... Otherwise you need to install an interrupt handler which will catch IRQ 14 and pass it on to the BIOS. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no