diff options
| author | Ada Christine <adachristine18@gmail.com> | 2021-03-21 18:38:17 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2021-03-21 18:38:17 +0000 |
| commit | c359af48545e2427a69eb955b0512706d4afa7e9 (patch) | |
| tree | 3a58acf219d23f6cca69ec4dae7e3adb6da2b4c5 /kernel/kprint.c | |
| parent | b88cfbdfad533629b294797efc196034c61dbb75 (diff) | |
higher-half stub kernel does the thing
Diffstat (limited to 'kernel/kprint.c')
| -rw-r--r-- | kernel/kprint.c | 18 |
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; +} + |
