From: Kouya Shimura Subject: [PATCH] rombios: fix int13h for floppy disk Date: Thu, 30 Oct 2008 13:55:57 +0900 Message-ID: <7k4p2u65r6.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="L/F7QwBR8D" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --L/F7QwBR8D Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit A floppy on HVM can't be read correctly. This fix is taken from upstream bochs-2.3.7. Signed-off-by: Kouya Shimura --L/F7QwBR8D Content-Type: text/x-patch Content-Disposition: inline; filename="rombios.patch" Content-Transfer-Encoding: 7bit diff -r 85a2a54c70c8 tools/firmware/rombios/rombios.c --- a/tools/firmware/rombios/rombios.c Wed Oct 29 19:06:52 2008 +0000 +++ b/tools/firmware/rombios/rombios.c Thu Oct 30 13:07:34 2008 +0900 @@ -7216,7 +7216,7 @@ BX_INFO("floppy: drive>1 || head>1 ...\n outb(0x03f5, head); outb(0x03f5, sector); outb(0x03f5, 2); // 512 byte sector size - outb(0x03f5, 0); // last sector number possible on track + outb(0x03f5, sector + num_sectors - 1); // last sector to read on track outb(0x03f5, 0); // Gap length outb(0x03f5, 0xff); // Gap length @@ -7364,7 +7364,7 @@ BX_INFO("floppy: drive>1 || head>1 ...\n outb(0x03f5, head); outb(0x03f5, sector); outb(0x03f5, 2); // 512 byte sector size - outb(0x03f5, 0); // last sector number possible on track + outb(0x03f5, sector + num_sectors - 1); // last sector to write on track outb(0x03f5, 0); // Gap length outb(0x03f5, 0xff); // Gap length --L/F7QwBR8D Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --L/F7QwBR8D--