From c359af48545e2427a69eb955b0512706d4afa7e9 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 21 Mar 2021 18:38:17 +0000 Subject: higher-half stub kernel does the thing --- kernel/kprint.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 kernel/kprint.c (limited to 'kernel/kprint.c') 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; +} + -- cgit v1.3.1-1-g115d