struct cb_cbmem_ref *cbref = find_cb_subtable(cbh, CB_TAG_CBMEM_CONSOLE);
if (cbref) {
cbcon = (void*)(u32)cbref->cbmem_addr;
- dprintf(1, "----- [ SeaBIOS %s ] -----\n", VERSION);
+ debug_banner();
dprintf(1, "Found coreboot cbmem console @ %llx\n", cbref->cbmem_addr);
}
if (strcmp(signature, "XenVMMXenVMM") == 0) {
/* Set debug_io_port first, so the following messages work. */
DebugOutputPort = 0xe9;
- dprintf(1, "SeaBIOS (version %s)\n\n", VERSION);
- dprintf(1, "Found Xen hypervisor signature at %x\n", base);
+ debug_banner();
+ dprintf(1, "\nFound Xen hypervisor signature at %x\n", base);
if ((eax - base) < 2)
panic("Insufficient Xen cpuid leaves. eax=%x at base %x\n",
eax, base);
* Debug output
****************************************************************/
+void
+debug_banner(void)
+{
+ dprintf(1, "SeaBIOS (version %s)\n", VERSION);
+}
+
// Write a character to debug port(s).
static void
debug_putc(struct putcinfo *action, char c)
#include "types.h" // u32
// output.c
+void debug_banner(void);
void panic(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2))) __noreturn;
void printf(const char *fmt, ...)
return;
serial_debug_preinit();
- dprintf(1, "Start bios (version %s)\n", VERSION);
+ debug_banner();
// Check if we are running under Xen.
xen_preinit();