[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] rombios: fix int13h for floppy disk
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1225373227 0 # Node ID e8f0e625e043cd71e61dc6fb6124a3367298bbfe # Parent 85a2a54c70c866b3dc0802a0bbb7b9c9c0881fcd rombios: fix int13h for floppy disk A floppy on HVM can't be read correctly. This fix is taken from upstream bochs-2.3.7. Signed-off-by: Kouya Shimura <kouya@xxxxxxxxxxxxxx> --- tools/firmware/rombios/rombios.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r 85a2a54c70c8 -r e8f0e625e043 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:27:07 2008 +0000 @@ -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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |