diff options
Diffstat (limited to 'kernel/io/io.c')
-rw-r--r-- | kernel/io/io.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/io/io.c b/kernel/io/io.c index 11acfdb..489148d 100644 --- a/kernel/io/io.c +++ b/kernel/io/io.c @@ -3,14 +3,17 @@ #include <comus/asm.h> #define PORT 0x3F8 -static void serial_out(uint8_t ch) { +static void serial_out(uint8_t ch) +{ // wait for output to be free - while ((inb(PORT + 5) & 0x20) == 0); + while ((inb(PORT + 5) & 0x20) == 0) + ; outb(PORT, ch); } -void fputc(FILE *stream, char c) { - (void) stream; +void fputc(FILE *stream, char c) +{ + (void)stream; serial_out(c); } |