diff --git a/Makefile b/Makefile index 2cfa081..d548624 100644 --- a/Makefile +++ b/Makefile @@ -52,7 +52,7 @@ OBJS += syscall.c.o OBJS := $(addprefix src/, $(OBJS)) run: $(IMAGE) - qemu-system-i386 -cdrom $< + qemu-system-i386 -cdrom $< -serial stdio all: $(KERNEL) diff --git a/src/console.c b/src/console.c index d6b7531..cb4a29f 100644 --- a/src/console.c +++ b/src/console.c @@ -1,6 +1,7 @@ #include "console.h" #include "stdlib.h" +#include "asm.h" static unsigned short *const console_buffer = (unsigned short*)0xB8000; @@ -37,6 +38,8 @@ void console_print(const char *const s) } void console_putc(const char c) { + outportb(0x3F8, c); + if (c == '\n') { console_column = 0;