From d0854aa095421f225f7004cdcca0b8ad074303c5 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 3 Apr 2025 23:04:38 -0400 Subject: fmt --- kernel/io/io.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'kernel/io/io.c') 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 #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); } -- cgit v1.2.3-freya