ia64/xen-unstable

changeset 18746:e8f0e625e043

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@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Oct 30 13:27:07 2008 +0000 (2008-10-30)
parents 85a2a54c70c8
children 1137464400a8
files tools/firmware/rombios/rombios.c
line diff
     1.1 --- a/tools/firmware/rombios/rombios.c	Wed Oct 29 19:06:52 2008 +0000
     1.2 +++ b/tools/firmware/rombios/rombios.c	Thu Oct 30 13:27:07 2008 +0000
     1.3 @@ -7216,7 +7216,7 @@ BX_INFO("floppy: drive>1 || head>1 ...\n
     1.4          outb(0x03f5, head);
     1.5          outb(0x03f5, sector);
     1.6          outb(0x03f5, 2); // 512 byte sector size
     1.7 -        outb(0x03f5, 0); // last sector number possible on track
     1.8 +        outb(0x03f5, sector + num_sectors - 1); // last sector to read on track
     1.9          outb(0x03f5, 0); // Gap length
    1.10          outb(0x03f5, 0xff); // Gap length
    1.11  
    1.12 @@ -7364,7 +7364,7 @@ BX_INFO("floppy: drive>1 || head>1 ...\n
    1.13          outb(0x03f5, head);
    1.14          outb(0x03f5, sector);
    1.15          outb(0x03f5, 2); // 512 byte sector size
    1.16 -        outb(0x03f5, 0); // last sector number possible on track
    1.17 +        outb(0x03f5, sector + num_sectors - 1); // last sector to write on track
    1.18          outb(0x03f5, 0); // Gap length
    1.19          outb(0x03f5, 0xff); // Gap length
    1.20