aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2008-08-17 11:30:07 -0400
committerKevin O'Connor <kevin@koconnor.net>2008-08-17 11:30:07 -0400
commit020c47641e0a191e90da448e97322ab322594a02 (patch)
tree8fb95d6eb474be5c35d81e3ac1bdac938082ac20
parentf13b008bddadc750167c7e814bab0cdfd75178eb (diff)
downloadseabios-020c47641e0a191e90da448e97322ab322594a02.tar.gz
Disable floppy access when coreboot enabled.
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.
-rw-r--r--src/floppy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/floppy.c b/src/floppy.c
index a42f53f3..4f7d4afd 100644
--- a/src/floppy.c
+++ b/src/floppy.c
@@ -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;