From 2ddbeb9f7214f6d3feef651eba83e6a9d120a743 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 13 Aug 2020 17:58:50 -0400 Subject: lots of progress, including readonly PATA driver and part of FAT16 driver --- src/kernel/serial.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel/serial.c') diff --git a/src/kernel/serial.c b/src/kernel/serial.c index 0f7abe6..c92f173 100644 --- a/src/kernel/serial.c +++ b/src/kernel/serial.c @@ -1,5 +1,6 @@ -#include #include +#include +#include "serial.h" #include "util.h" enum { @@ -76,12 +77,12 @@ void sout(char b) { outb(CP_1 | CP_DATA, (uint8_t)b); } -void soutsz(char *s) { +void soutsz(const char *s) { while (*s) sout(*(s++)); } -void soutsn(char *s, uint8_t n) { +void soutsn(const char *s, uint8_t n) { while (n--) sout(*(s++)); } -- cgit v1.2.3