From owner-freebsd-stable@FreeBSD.ORG Thu Nov 6 09:59:48 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D47BE16A4DD for ; Thu, 6 Nov 2003 09:59:48 -0800 (PST) Received: from doom.homeunix.org (9-126.dialup.comset.net [213.172.9.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4DAD43F85 for ; Thu, 6 Nov 2003 09:59:45 -0800 (PST) (envelope-from igor@doom.homeunix.org) Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.12.10/8.12.10) with ESMTP id hA6HxZQ3000299; Thu, 6 Nov 2003 20:59:36 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.12.10/8.12.10/Submit) id hA6HxUlS000298; Thu, 6 Nov 2003 20:59:30 +0300 (MSK) (envelope-from igor) Date: Thu, 6 Nov 2003 20:59:30 +0300 From: Igor Pokrovsky To: "M. Warner Losh" Message-ID: <20031106175930.GA211@doom.homeunix.org> Mail-Followup-To: "M. Warner Losh" , freebsd-stable@freebsd.org References: <20031106140739.GA245@doom.homeunix.org> <20031106.093523.49433410.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031106.093523.49433410.imp@bsdimp.com> User-Agent: Mutt/1.4.1i X-Accept-Language: ru cc: freebsd-stable@freebsd.org Subject: Re: fd access problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2003 17:59:49 -0000 On Thu, Nov 06, 2003 at 09:35:23AM -0700, M. Warner Losh wrote: > In message: <20031106140739.GA245@doom.homeunix.org> > Igor Pokrovsky writes: > : #dmesg | grep fd > : fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 > : fdc0: FIFO enabled, 8 bytes threshold > > floppy controller, but no floppy. Find the cause, and you'll find the > problem. Thanks for the pointer! After some research I found the following solution for my problem: ------------------------------------------------------------------- Index: fd.c =================================================================== RCS file: /home/src/CVS/FreeBSD/src/sys/isa/fd.c,v retrieving revision 1.176.2.8 diff -u -r1.176.2.8 fd.c --- fd.c 15 May 2002 21:56:14 -0000 1.176.2.8 +++ fd.c 6 Nov 2003 17:19:46 -0000 @@ -1070,8 +1070,10 @@ set_motor(fdc, fdsu, TURNOFF); +#if 0 if (st0 & NE7_ST0_EC) /* no track 0 -> no drive present */ return (ENXIO); +#endif fd->track = FD_NO_TRACK; fd->fdc = fdc; ------------------------------------------------------------------- Now I'm interested if the check for 0 track is really neccessary? Should I submit a pr? -ip -- All true wisdom is found on T-shirts.