fd access problem

Igor Pokrovsky tiamat at comset.net
Thu Nov 6 09:59:49 PST 2003


On Thu, Nov 06, 2003 at 09:35:23AM -0700, M. Warner Losh wrote:
> In message: <20031106140739.GA245 at doom.homeunix.org>
>             Igor Pokrovsky <tiamat at 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.


More information about the freebsd-stable mailing list