projects
/
seabios.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f13b008
)
Disable floppy access when coreboot enabled.
author
Kevin O'Connor
<kevin@koconnor.net>
Sun, 17 Aug 2008 15:30:07 +0000
(11:30 -0400)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/src/floppy.c
b/src/floppy.c
index a42f53f3ee38479733f79576e1976c9a8cce72dd..4f7d4afd5b92f897e8ceabdd8f495aefd974cae5 100644
(file)
--- 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;