aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/std/putchar.c
diff options
context:
space:
mode:
authorEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-07-18 22:25:44 -0400
committerEmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com>2024-09-03 14:07:04 -0400
commit8eda325ede02d3fc606a34f7fa3c4922b05a84e4 (patch)
tree881da3ba217871a002e6e79bdfc90149cc589e1d /kernel/std/putchar.c
parent82bcab74e6e0c581dcf4ac4d7997aec5c5e14aae (diff)
Remerged the std stuff into the kernel
Diffstat (limited to 'kernel/std/putchar.c')
-rw-r--r--kernel/std/putchar.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/std/putchar.c b/kernel/std/putchar.c
new file mode 100644
index 0000000..f0f5783
--- /dev/null
+++ b/kernel/std/putchar.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+//#include <arch/i386/tmtty.h>
+#include <arch/x86_64/serial.h>
+
+int putchar(int ic) {
+ char c = (char) ic;
+ serial_putchar(c);
+ //terminal_write(&c, sizeof(c));
+ return ic;
+} \ No newline at end of file