aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/syscall/actions')
-rw-r--r--src/kernel/syscall/actions/sys_read.c7
-rw-r--r--src/kernel/syscall/actions/sys_write.c6
2 files changed, 4 insertions, 9 deletions
diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c
index 02960f6..83e645c 100644
--- a/src/kernel/syscall/actions/sys_read.c
+++ b/src/kernel/syscall/actions/sys_read.c
@@ -16,10 +16,7 @@ uint32_t sys_read(char *buf)
return strlen(buf);
}
-uint32_t sys_readc(char *ch)
+uint32_t sys_readc()
{
- char buf = getch();
- ch = &buf;
- serial_put(*ch);
- return (uint32_t) ch;
+ return (uint32_t) getch();
} \ No newline at end of file
diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c
index 8531e85..6377473 100644
--- a/src/kernel/syscall/actions/sys_write.c
+++ b/src/kernel/syscall/actions/sys_write.c
@@ -9,10 +9,8 @@ uint32_t sys_write(char *buf)
return strlen((const char *) buf);
}
-uint32_t sys_writec(char *ch)
+uint32_t sys_writec(char ch)
{
- serial_write_hex(*ch);
- serial_write("\n\n");
- writec((char) *ch);
+ writec((char) ch);
return 0;
} \ No newline at end of file