STUBOBJS=entry.o pagingstub-asm.o pagingstub.o
-OBJS=smi.o ../ich2/smi.o ../ich2/smram-ich2.o vga-overlay.o ../pci/pci-raw.o ../lib/minilib.o ../lib/doprnt.o ../lib/sprintf.o ../lib/console.o
+OBJS=smi.o ../ich2/smi.o ../ich2/smram-ich2.o vga-overlay.o ../pci/pci-raw.o ../lib/minilib.o ../lib/doprnt.o ../lib/sprintf.o ../lib/console.o ../lib/serial.o
all: aseg.elf
smram = smram_save_state();
smram_tseg_set_state(SMRAM_TSEG_OPEN);
+ serial_init();
/*
for (bp = (void *)&_bss; (void *)bp < (void *)&_bssend; bp++)
*bp = 0;
#include <minilib.h>
#include <stdarg.h>
#include <output.h>
+#include <serial.h>
#define LOGLEN 96
#define LOG_ONSCREEN 4
{
strcpy(logents[prodptr], s);
prodptr = (prodptr + 1) % LOGLEN;
+ while (*s)
+ serial_tx(*s);
if (flush_imm)
outlog();
}
--- /dev/null
+#ifndef SERIAL_H
+#define SERIAL_H
+
+extern void serial_init();
+extern void serial_tx(unsigned char c);
+
+#endif