Date: Thu, 6 Nov 2003 20:59:30 +0300 From: Igor Pokrovsky <tiamat@comset.net> To: "M. Warner Losh" <imp@bsdimp.com> Cc: freebsd-stable@freebsd.org Subject: Re: fd access problem Message-ID: <20031106175930.GA211@doom.homeunix.org> In-Reply-To: <20031106.093523.49433410.imp@bsdimp.com> References: <20031106140739.GA245@doom.homeunix.org> <20031106.093523.49433410.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Nov 06, 2003 at 09:35:23AM -0700, M. Warner Losh wrote: > In message: <20031106140739.GA245@doom.homeunix.org> > Igor Pokrovsky <tiamat@comset.net> writes: > : #dmesg | grep fd > : fdc0: <NEC 72065B or clone> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031106175930.GA211>