diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2014-01-15 13:42:50 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2014-01-22 17:30:30 -0500 |
commit | 940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31 (patch) | |
tree | 1cb35b18dd6695877ff2908631a2867bc892d995 /vgasrc/vgainit.c | |
parent | cf85418f7825a2a6712f8feb0ab7e37c55323eb3 (diff) | |
download | seabios-940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31.tar.gz |
debug: Only call serial_debug_preinit() at startup.
The serial_debug_preinit() function disables serial interrupts so that
the OS doesn't get confused by "transmit buffer empty" interrupts
caused when seabios writes to the serial port. It's unnecessary
paranoia to keep rechecking that interrupts are disabled.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgainit.c')
-rw-r--r-- | vgasrc/vgainit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vgasrc/vgainit.c b/vgasrc/vgainit.c index 7b01e03c..13221fdd 100644 --- a/vgasrc/vgainit.c +++ b/vgasrc/vgainit.c @@ -9,6 +9,7 @@ #include "bregs.h" // struct bregs #include "hw/pci.h" // pci_config_readw #include "hw/pci_regs.h" // PCI_VENDOR_ID +#include "hw/serialio.h" // serial_debug_preinit #include "output.h" // dprintf #include "std/optionrom.h" // struct pci_data #include "std/pmm.h" // struct pmmheader @@ -126,7 +127,7 @@ int HaveRunInit VAR16; void VISIBLE16 vga_post(struct bregs *regs) { - debug_preinit(); + serial_debug_preinit(); dprintf(1, "Start SeaVGABIOS (version %s)\n", VERSION); debug_enter(regs, DEBUG_VGA_POST); |