void VISIBLE32FLAT
handle_18(void)
{
- debug_preinit();
debug_enter(NULL, DEBUG_HDL_18);
int seq = BootSequence + 1;
BootSequence = seq;
void VISIBLE32FLAT
handle_19(void)
{
- debug_preinit();
debug_enter(NULL, DEBUG_HDL_19);
BootSequence = 0;
do_boot(0);
start_preempt();
farcall16big(&br);
finish_preempt();
-
- debug_preinit();
}
// Execute a given option rom at the standard entry vector.
* Debug output
****************************************************************/
-// Setup debugging port(s).
-void
-debug_preinit(void)
-{
- serial_debug_preinit();
-}
-
// Write a character to debug port(s).
static void
debug_putc(struct putcinfo *action, char c)
#include "types.h" // u32
// output.c
-void debug_preinit(void);
void panic(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2))) __noreturn;
void printf(const char *fmt, ...)
#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
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.
handle_resume(void)
{
ASSERT16();
- debug_preinit();
int status = rtc_read(CMOS_RESET_CODE);
rtc_write(CMOS_RESET_CODE, 0);
dprintf(1, "In resume (status=%d)\n", status);
#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
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);