summaryrefslogtreecommitdiff
path: root/kc/core/kprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'kc/core/kprint.c')
-rw-r--r--kc/core/kprint.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kc/core/kprint.c b/kc/core/kprint.c
new file mode 100644
index 0000000..0a15efd
--- /dev/null
+++ b/kc/core/kprint.c
@@ -0,0 +1,18 @@
+#include "kprint.h"
+#include "serial.h"
+
+int kputchar(int c)
+{
+ return serial_putchar(c);
+}
+
+int kputs(const char *s)
+{
+ while (*s)
+ {
+ kputchar(*s++);
+ }
+
+ return 0;
+}
+