Signed-off-by: Kevin O'Connor kevin@koconnor.net --- Makefile | 6 ++++-- vgasrc/vgabios.c | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile index 07a1174..5d834b7 100644 --- a/Makefile +++ b/Makefile @@ -200,8 +200,10 @@ $(OUT)vgaentry.o: vgaentry.S $(OUT)autoconf.h $(Q)$(CC) $(CFLAGS16VGA) -c -D__ASSEMBLY__ $< -o $@
$(OUT)vgarom.o: $(OUT)vgaccode16.o $(OUT)vgaentry.o $(OUT)vgalayout.lds - @echo " Linking $@" - $(Q)$(LD) --gc-sections -T $(OUT)vgalayout.lds $(OUT)vgaccode16.o $(OUT)vgaentry.o -o $@ + @echo " Linking $@ (version "$(VERSION)")" + $(Q)printf '#include "types.h"\nchar VERSION[] VAR16 = "$(VERSION)";' > $(OUT)vgaversion.c + $(Q)$(CC) $(CFLAGS16VGA) -c $(OUT)vgaversion.c -o $(OUT)vgaversion.o + $(Q)$(LD) --gc-sections -T $(OUT)vgalayout.lds $(OUT)vgaccode16.o $(OUT)vgaentry.o $(OUT)vgaversion.o -o $@
$(OUT)vgabios.bin.raw: $(OUT)vgarom.o @echo " Extracting binary $@" diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index 7b6c50a..dc5d7e9 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -1243,6 +1243,8 @@ int HaveRunInit VAR16; void VISIBLE16 vga_post(struct bregs *regs) { + debug_serial_setup(); + dprintf(1, "Start SeaVGABIOS (version %s)\n", VERSION); debug_enter(regs, DEBUG_VGA_POST);
if (CONFIG_VGA_PCI && !GET_GLOBAL(HaveRunInit)) {