Disable floppy access when coreboot enabled.
authorKevin O'Connor <kevin@koconnor.net>
Sun, 17 Aug 2008 15:30:07 +0000 (11:30 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 17 Aug 2008 15:30:07 +0000 (11:30 -0400)
Floppy code on real hardware is suspect, but some OSes might require
   the calls to be present.  So, force the floppy count to zero for
   now.

src/floppy.c

index a42f53f3ee38479733f79576e1976c9a8cce72dd..4f7d4afd5b92f897e8ceabdd8f495aefd974cae5 100644 (file)
@@ -47,6 +47,9 @@ floppy_drive_setup()
     if (! CONFIG_FLOPPY_SUPPORT)
         return;
     dprintf(3, "init floppy drives\n");
+    if (CONFIG_COREBOOT)
+        // XXX - disable floppies on coreboot for now.
+        outb_cmos(0, CMOS_FLOPPY_DRIVE_TYPE);
     u8 type = inb_cmos(CMOS_FLOPPY_DRIVE_TYPE);
     u8 out = 0;
     u8 num_floppies = 0;