From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQhLL-0002Ax-47 for qemu-devel@nongnu.org; Sat, 24 Jan 2009 07:10:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQhLH-00028i-K9 for qemu-devel@nongnu.org; Sat, 24 Jan 2009 07:10:30 -0500 Received: from [199.232.76.173] (port=46739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQhLH-00028f-95 for qemu-devel@nongnu.org; Sat, 24 Jan 2009 07:10:27 -0500 Received: from fk-out-0910.google.com ([209.85.128.190]:44119) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQhLG-0001GJ-T8 for qemu-devel@nongnu.org; Sat, 24 Jan 2009 07:10:27 -0500 Received: by fk-out-0910.google.com with SMTP id z23so1764728fkz.2 for ; Sat, 24 Jan 2009 04:10:24 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <388245.94194.qm@web51101.mail.re2.yahoo.com> References: <388245.94194.qm@web51101.mail.re2.yahoo.com> Date: Sat, 24 Jan 2009 14:10:24 +0200 Message-ID: Subject: Re: [Qemu-devel] [PATCH][Resend] Floppy: Properly handle Sense Interrupt Status after FDC Reset From: Blue Swirl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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/22/09, Justin Chevrier wrote: > Original text below. > > Attached is a patch that changes how the emulated floppy controller repl= ies 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 clea= r 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 S= CO Openserver installer which is expects a POLLING state after reset. This = patch returns a POLLING status for four Sense Interrupt Status requests imm= ediately after a controller reset. This approach mirrors the way Bochs hand= les this situation. With the attached patch applied Openserver gets further= when trying to load storage drivers from the floppy disk (blocked by anoth= er 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 Thanks, applied.