From 50f949d994c33ab23d63bdb9e8a438560ab0b4c4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 30 Nov 2019 21:07:22 +0100 Subject: Working userspace! --- src/kernel/syscall/actions/sys_write.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/kernel/syscall/actions/sys_write.c (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 new file mode 100644 index 0000000..c537d12 --- /dev/null +++ b/src/kernel/syscall/actions/sys_write.c @@ -0,0 +1,9 @@ +#include +#include + +uint32_t sys_write(char *buf, uint32_t count) +{ + for (uint32_t i = 0; i < count; i++) + writec(*(buf++)); + return count; +} \ No newline at end of file -- cgit v1.2.3