From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LKDxx-00062m-HG for qemu-devel@nongnu.org; Tue, 06 Jan 2009 10:35:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LKDxu-0005xB-Sf for qemu-devel@nongnu.org; Tue, 06 Jan 2009 10:35:37 -0500 Received: from [199.232.76.173] (port=59990 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LKDxu-0005wx-O2 for qemu-devel@nongnu.org; Tue, 06 Jan 2009 10:35:34 -0500 Received: from fk-out-0910.google.com ([209.85.128.189]:60768) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LKDxu-0002IZ-7v for qemu-devel@nongnu.org; Tue, 06 Jan 2009 10:35:34 -0500 Received: by fk-out-0910.google.com with SMTP id 18so4041630fks.2 for ; Tue, 06 Jan 2009 07:35:32 -0800 (PST) Message-ID: Date: Tue, 6 Jan 2009 17:35:32 +0200 From: "Blue Swirl" Subject: Re: [Qemu-devel] [PATCH] Floppy: Properly handle Sense Interrupt Status after FDC Reset In-Reply-To: <433254.27767.qm@web51101.mail.re2.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <433254.27767.qm@web51101.mail.re2.yahoo.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: theburner1@yahoo.com, qemu-devel@nongnu.org On 1/6/09, Justin Chevrier wrote: > Attached is a patch that changes how the emulated floppy controller replies to Sense Interrupt Status commands immediately after a controller reset. The specs state that after a Reset the 82078 goes into polling mode which needs four Sense Interrupt Status commands to be issued afterwards to clear the status of each drive. Currently we always respond to Sense Interrupt Status with a SEEK END instead of POLLING. This causes a problem with the SCO Openserver installer which is expects a POLLING state after reset. This patch returns a POLLING status for four Sense Interrupt Status requests immediately after a controller reset. This approach mirrors the way Bochs handles this situation. With the attached patch applied Openserver gets further when trying to load storage drivers from the floppy disk (blocked by another issue, patch on its way). I have successfully tested the floppy drive on the following OSs after applying this patch: Windows 98, Windows XP > SP2, Linux x86 (SysRescCD 1.1.3 and Ubuntu 8.10). > > Justin > > Changelog: > > Properly handle Sense Interrupt Status after FDC Reset > > Signed-off-by: Justin Chevrier OK for Sparc.