Skip to contentSkip to conversation

ata bug

Qemu-devel Jens Axboe 1 participant 1 message Jan 23, 2004

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

Hi,

Writing some openbios ide code made me find this bug in qemu - atapi need only clear busy stat, that is correct, but ata should set seek stat in addition to ready stat.

Index: ide.c
===================================================================
RCS file: /cvsroot/qemu/qemu/ide.c,v
retrieving revision 1.6

ide.c +1 -1
diff -u -r1.6 ide.c
@@ -1284,7 +1284,7 @@
             if (s->is_cdrom)
                 s->status = 0x00; /* NOTE: READY is _not_ set */
             else
-                s->status = READY_STAT;
+                s->status = READY_STAT | SEEK_STAT;
             ide_set_signature(s);
         }
     }
Signature · 1 line
Jens Axboe