j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: 2008-12-23 19:32:42 +0100 (Tue, 23 Dec 2008) New Revision: 321
Modified: openbios-devel/drivers/floppy.c Log: Infinite loop fix (Justin Chevrier)
Modified: openbios-devel/drivers/floppy.c =================================================================== --- openbios-devel/drivers/floppy.c 2008-12-23 15:54:58 UTC (rev 320) +++ openbios-devel/drivers/floppy.c 2008-12-23 18:32:42 UTC (rev 321) @@ -359,11 +359,8 @@ printk_debug("SENSEI %02x %02x\n", reply_buffer[0], reply_buffer[1]); } -#if 0 - }while((nr == 2) && (reply_buffer[0] != 0x80)); -#else + max_sensei--; }while(((reply_buffer[0] & 0x83) != FD_DRIVE) && (nr == 2) && max_sensei); -#endif status = inb(FD_STATUS); printk_debug("status = %x, reply_buffer=", status); for(i = 0; i < nr; i++) {