aboutsummaryrefslogtreecommitdiff
path: root/src/post.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-01-15 13:42:50 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-01-22 17:30:30 -0500
commit940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31 (patch)
tree1cb35b18dd6695877ff2908631a2867bc892d995 /src/post.c
parentcf85418f7825a2a6712f8feb0ab7e37c55323eb3 (diff)
downloadseabios-hppa-940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31.zip
seabios-hppa-940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31.tar.gz
seabios-hppa-940fc1fc58b4f2a1c3baa8a5bb907f7b22ba0a31.tar.bz2
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 'src/post.c')
-rw-r--r--src/post.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/post.c b/src/post.c
index ace6f4c..ec3271e 100644
--- a/src/post.c
+++ b/src/post.c
@@ -19,6 +19,7 @@
#include "hw/pic.h" // pic_setup
#include "hw/ps2port.h" // ps2port_setup
#include "hw/rtc.h" // rtc_write
+#include "hw/serialio.h" // serial_debug_preinit
#include "hw/usb.h" // usb_setup
#include "hw/virtio-blk.h" // virtio_blk_setup
#include "hw/virtio-scsi.h" // virtio_scsi_setup
@@ -317,7 +318,7 @@ handle_post(void)
if (!CONFIG_QEMU && !CONFIG_COREBOOT)
return;
- debug_preinit();
+ serial_debug_preinit();
dprintf(1, "Start bios (version %s)\n", VERSION);
// Check if we are running under Xen.