diff options
author | Marvin Borner | 2019-12-04 20:38:10 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-04 20:38:10 +0100 |
commit | ed3da12bb378d82878fff1d50e5e9e7af3d7265d (patch) | |
tree | 53200ca859511e5464bfd50923a3229590997607 /src/kernel/syscall/actions | |
parent | e9407b091b34d93014b89660601da62f13df37aa (diff) |
More-working syscall logic (parameters work!)
Diffstat (limited to 'src/kernel/syscall/actions')
-rw-r--r-- | src/kernel/syscall/actions/sys_write.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c index fceaaab..19c35fa 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -2,10 +2,11 @@ #include <mlibc/stdio.h> #include <kernel/io/io.h> -uint32_t sys_write(char *buf, uint32_t count) +uint32_t sys_write(unsigned int buf, unsigned int count) { - serial_write("WRITE"); - for (uint32_t i = 0; i < count; i++) - writec(*(buf++)); + serial_write("\n"); + serial_write_dec(count); + serial_write("WRITE: \n"); + serial_write((const char *) buf); return count; }
\ No newline at end of file |