summaryrefslogtreecommitdiff
path: root/kernel/kprint.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2021-03-21 18:38:17 +0000
committerAda Christine <adachristine18@gmail.com>2021-03-21 18:38:17 +0000
commitc359af48545e2427a69eb955b0512706d4afa7e9 (patch)
tree3a58acf219d23f6cca69ec4dae7e3adb6da2b4c5 /kernel/kprint.c
parentb88cfbdfad533629b294797efc196034c61dbb75 (diff)
higher-half stub kernel does the thing
Diffstat (limited to 'kernel/kprint.c')
-rw-r--r--kernel/kprint.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/kprint.c b/kernel/kprint.c
new file mode 100644
index 0000000..0a15efd
--- /dev/null
+++ b/kernel/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;
+}
+