From 33bdf18dad2539aca21727e95e04bfedecd37a76 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 9 Dec 2019 16:06:37 +0100 Subject: Lars, your wish may come true if you fix this! --- src/kernel/syscall/actions/sys_write.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/kernel/syscall/actions/sys_write.c') diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c index f159335..554ac5f 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -7,4 +7,14 @@ uint32_t sys_write(char *buf) { printf(buf); return strlen((const char *) buf); +} + +uint32_t sys_writec(char ch) +{ + serial_write_hex(ch); + serial_write("\n"); + serial_put(ch); + serial_write("\n\n"); + writec(ch); + return 0; } \ No newline at end of file -- cgit v1.2.3