summaryrefslogtreecommitdiff
path: root/kernel/io/io.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-03 23:38:33 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-03 23:38:33 -0400
commit3c2a519ee9ab1ee5fcf043eb403242859b541d6b (patch)
treee5571b4732f1366e36c7da5ce08dcb4c18913f1e /kernel/io/io.c
parentpci (diff)
downloadcomus-3c2a519ee9ab1ee5fcf043eb403242859b541d6b.tar.gz
comus-3c2a519ee9ab1ee5fcf043eb403242859b541d6b.tar.bz2
comus-3c2a519ee9ab1ee5fcf043eb403242859b541d6b.zip
serial and tty
Diffstat (limited to 'kernel/io/io.c')
-rw-r--r--kernel/io/io.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/kernel/io/io.c b/kernel/io/io.c
deleted file mode 100644
index 489148d..0000000
--- a/kernel/io/io.c
+++ /dev/null
@@ -1,19 +0,0 @@
-#include <lib.h>
-#include <stdio.h>
-#include <comus/asm.h>
-
-#define PORT 0x3F8
-static void serial_out(uint8_t ch)
-{
- // wait for output to be free
- while ((inb(PORT + 5) & 0x20) == 0)
- ;
- outb(PORT, ch);
-}
-
-void fputc(FILE *stream, char c)
-{
- (void)stream;
-
- serial_out(c);
-}