summaryrefslogtreecommitdiff
path: root/arch/i386
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386')
-rw-r--r--arch/i386/serial.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/i386/serial.c b/arch/i386/serial.c
index c1266bb..20bd8f9 100644
--- a/arch/i386/serial.c
+++ b/arch/i386/serial.c
@@ -1,4 +1,6 @@
#include <kernel/serial.h>
+#include <kernel/string.h>
+#include <stddef.h>
#include "pic.h"
#define PORT 0x3f8
@@ -38,3 +40,8 @@ void write_serial(char a) {
while (is_transmit_empty() == 0);
outb(PORT, a);
}
+
+void serial_writestring(const char *str) {
+ for (size_t i = 0; i < strlen(str); i++)
+ write_serial(str[i]);
+}