summaryrefslogtreecommitdiff
path: root/kc/core/kstdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'kc/core/kstdio.c')
-rw-r--r--kc/core/kstdio.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/kc/core/kstdio.c b/kc/core/kstdio.c
new file mode 100644
index 0000000..2971b18
--- /dev/null
+++ b/kc/core/kstdio.c
@@ -0,0 +1,16 @@
+#include "kprint.h"
+#include "serial.h"
+
+#include <lib.h>
+
+#include <stdint.h>
+#include <stdbool.h>
+
+FILE *kstdout;
+
+int kfputc(int c, FILE *f)
+{
+ (void)f;
+ return serial_putchar(c);
+}
+