From nobody@FreeBSD.org  Fri Apr 15 04:06:11 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9828D16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Apr 2005 04:06:11 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7900543D41
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Apr 2005 04:06:11 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j3F46BOJ076613
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 15 Apr 2005 04:06:11 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j3F46Bgf076612;
	Fri, 15 Apr 2005 04:06:11 GMT
	(envelope-from nobody)
Message-Id: <200504150406.j3F46Bgf076612@www.freebsd.org>
Date: Fri, 15 Apr 2005 04:06:11 GMT
From: "bkoenig@cs.tu-berlin.de" <bkoenig@cs.tu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: virtual floppy controller of Virtual PC does not work
X-Send-Pr-Version: www-2.3

>Number:         79944
>Category:       kern
>Synopsis:       [fdc] virtual floppy controller of Virtual PC does not work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 15 04:10:24 GMT 2005
>Closed-Date:    
>Last-Modified:  Thu May 24 21:31:33 GMT 2007
>Originator:     bkoenig@cs.tu-berlin.de
>Release:        
>Organization:
>Environment:
affects all kernels since Sat Sep 18 04:57:55 2004 UTC (phk's new floppy driver)
>Description:
      The virtual floppy disk controller of Microsoft Virtual PC 2004
does not work. This is not a FreeBSD bug, because the virtual controller
simply does not react on attempted resets. Therefore it might be a bug
of Virtual PC 2004.
>How-To-Repeat:
      Run FreeBSD 5.3-RELEASE or later with Virtual PC and try to use a
floppy disk image as usual. /dev/fd0 is missing. dmesg.boot shows failure with fdc.
>Fix:
      This is not intended as a fix but rather as a hint for users who
just want a working fdc. There is an assertion in fdc_initial_reset in
src/sys/dev/fdc/fdc.c which is true:

  /*
   * Assert a reset to the floppy controller and check that the status
   * register goes to zero.
   */
   fdout_wr(fdc, 0);
   fdout_wr(fdc, 0);
   if (fdsts_rd(fdc) != 0)
       return (ENXIO);

Remove the last two of these lines and build and install a new kernel.

>Release-Note:
>Audit-Trail:
>Unformatted:
